| View previous topic :: View next topic |
| Author |
Message |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Mon Feb 12, 2007 5:39 pm Post subject: Bug in sceAudiocodec.S |
|
|
| Quote: | | IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodeCheckNeedMem |
Should be:
| Quote: | | IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodecCheckNeedMem |
|
|
| Back to top |
|
 |
gbj1
Joined: 08 Feb 2007 Posts: 45
|
Posted: Mon Feb 12, 2007 6:10 pm Post subject: |
|
|
still available in the latest svn revision? _________________ guo.bojun@gmail.com |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Mon Feb 12, 2007 7:08 pm Post subject: |
|
|
| 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 |
|
 |
cooleyes
Joined: 18 May 2006 Posts: 125
|
Posted: Tue Feb 13, 2007 12:40 am Post subject: |
|
|
| 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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Tue Feb 13, 2007 1:00 am Post subject: |
|
|
| Only for atrac3, I've been unable to get any other format to work. |
|
| Back to top |
|
 |
cooleyes
Joined: 18 May 2006 Posts: 125
|
Posted: Tue Feb 13, 2007 1:08 am Post subject: |
|
|
| 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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Tue Feb 13, 2007 1:11 am Post subject: |
|
|
| Heavily based on that, yes. |
|
| Back to top |
|
 |
cooleyes
Joined: 18 May 2006 Posts: 125
|
Posted: Tue Feb 13, 2007 1:17 am Post subject: |
|
|
| do you have a full typedef of Struct "AT3_Codec_Buffer“? |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Tue Feb 13, 2007 3:34 am Post subject: |
|
|
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 |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Tue Feb 13, 2007 6:01 am Post subject: |
|
|
| 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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Tue Feb 13, 2007 7:42 am Post subject: |
|
|
| I meant I was unsure where this thread topic was going ;) |
|
| Back to top |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Tue Feb 13, 2007 7:59 am Post subject: |
|
|
| Insert_witty_name wrote: | | I meant I was unsure where this thread topic was going ;) |
;p |
|
| Back to top |
|
 |
|