Should be:IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodeCheckNeedMem
IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodecCheckNeedMem
Should be:IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodeCheckNeedMem
IMPORT_FUNC "sceAudiocodec",0x9D3F790C,sceAudiocodecCheckNeedMem
the code like this?Insert_witty_name wrote:Only for atrac3, I've been unable to get any other format to work.
Code: Select all
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);
Code: Select all
unsigned long AT3_Codec_Buffer[65] __attribute__((aligned(64)));
well this is a (global ?) variable which declares an array of unsigned long at a cache-line boundary.Insert_witty_name wrote:It's not a typedef or a struct:
I'm unsure where this is going...Code: Select all
unsigned long AT3_Codec_Buffer[65] __attribute__((aligned(64)));