forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug in sceAudiocodec.S

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Feb 12, 2007 5:39 pm    Post subject: Bug in sceAudiocodec.S Reply with quote

Quote:
IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodeCheckNeedMem


Should be:

Quote:
IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodecCheckNeedMem
Back to top
View user's profile Send private message
gbj1



Joined: 08 Feb 2007
Posts: 45

PostPosted: Mon Feb 12, 2007 6:10 pm    Post subject: Reply with quote

still available in the latest svn revision?
_________________
guo.bojun@gmail.com
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Feb 12, 2007 7:08 pm    Post subject: Reply with quote

The svn is currently down so I'm unable to check, but as of my last svn update (yesterday), this bug still existed.
Back to top
View user's profile Send private message
cooleyes



Joined: 18 May 2006
Posts: 125

PostPosted: Tue Feb 13, 2007 12:40 am    Post subject: Reply with quote

Insert_witty_name wrote:
The svn is currently down so I'm unable to check, but as of my last svn update (yesterday), this bug still existed.

hi
do you know how to use those functions in sceAudioCodec lib?
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Tue Feb 13, 2007 1:00 am    Post subject: Reply with quote

Only for atrac3, I've been unable to get any other format to work.
Back to top
View user's profile Send private message
cooleyes



Joined: 18 May 2006
Posts: 125

PostPosted: Tue Feb 13, 2007 1:08 am    Post subject: Reply with quote

Insert_witty_name wrote:
Only for atrac3, I've been unable to get any other format to work.


the code like this?
Code:

AT3_Codec_Buffer[AT3_CURRENT_BUFFER] = (int) (File_Mem + AT3_Datas_Start);
         AT3_Codec_Buffer[AT3_TEMPORARY_BUFFER] = (int) AT3_Mix_Buffer;
         AT3_Codec_Buffer[10] = 4;
         AT3_Codec_Buffer[44] = 2;
         AT3_Codec_Buffer[AT3_INITIAL_BUFFER] = (int) File_Mem;
         AT3_Codec_Buffer[AT3_LENGTH_BUFFER] = File_Length;
      
         if(sceAudiocodecCheckNeedMem(AT3_Codec_Buffer, AT3_TYPE_ATRAC3) < 0) return(0);
         if(sceAudiocodecGetEDRAM(AT3_Codec_Buffer, AT3_TYPE_ATRAC3) < 0) return(0);
         if(sceAudiocodecInit(AT3_Codec_Buffer, AT3_TYPE_ATRAC3) < 0) return(0);


those Written by hitchhikr/Neural.
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Tue Feb 13, 2007 1:11 am    Post subject: Reply with quote

Heavily based on that, yes.
Back to top
View user's profile Send private message
cooleyes



Joined: 18 May 2006
Posts: 125

PostPosted: Tue Feb 13, 2007 1:17 am    Post subject: Reply with quote

do you have a full typedef of Struct "AT3_Codec_Buffer“?
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Tue Feb 13, 2007 3:34 am    Post subject: Reply with quote

It's not a typedef or a struct:

Code:
unsigned long AT3_Codec_Buffer[65] __attribute__((aligned(64)));


I'm unsure where this is going...
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Tue Feb 13, 2007 6:01 am    Post subject: Reply with quote

Insert_witty_name wrote:
It's not a typedef or a struct:

Code:
unsigned long AT3_Codec_Buffer[65] __attribute__((aligned(64)));


I'm unsure where this is going...


well this is a (global ?) variable which declares an array of unsigned long at a cache-line boundary.
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Tue Feb 13, 2007 7:42 am    Post subject: Reply with quote

I meant I was unsure where this thread topic was going ;)
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Tue Feb 13, 2007 7:59 am    Post subject: Reply with quote

Insert_witty_name wrote:
I meant I was unsure where this thread topic was going ;)

;p
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group