Added jp audio

This commit is contained in:
KiritoDv 2024-11-21 01:32:10 -06:00
parent 1db38edc99
commit f29a21e254
3 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,30 @@
:config:
force: true
header:
code:
- '#include "sys.h"'
- '#include "sf64audio_provisional.h"'
audio_setup:
type: NAUDIO:V1:AUDIO_SETUP
audio_seq:
size: 0x3AFD0
offset: 0xE9950
audio_bank:
size: 0x1F120
offset: 0x124920
audio_table:
size: 0x700C20
offset: 0x143A40
audio_sample_bank_table:
{ type: NAUDIO:V1:AUDIO_TABLE, format: SAMPLE, offset: 0xC1360, symbol: gSampleBankTableInit }
audio_seq_table:
{ type: NAUDIO:V1:AUDIO_TABLE, format: SEQUENCE, offset: 0xC13B0, symbol: gSeqTableInit }
audio_soundfont_table:
{ type: NAUDIO:V1:AUDIO_TABLE, format: SOUNDFONT, offset: 0xC17E0, symbol: gSoundFontTableInit }
audio_seq_font_table:
{ type: ARRAY, count: 283, array_type: u8, offset: 0xC1A00, symbol: gSeqFontTableInit }

View File

@ -27,7 +27,7 @@ d064229a32cc05ab85e2381ce07744eb3ffaf530:
gbi: F3DEX
sort: OFFSET
output:
binary: sf64.otr
binary: mods/sf64jp.otr
code: src/assets
headers: include/assets
modding: src/assets

View File

@ -610,7 +610,6 @@ void AudioLoad_RelocateFont(s32 fontId, uintptr_t fontBaseAddr, SampleBankRelocI
// }
// }
AudioTable* table = AudioLoad_GetLoadTable(FONT_TABLE);
printf("fontId: %d\n", fontId);
SoundFont* font = Audio_LoadFont(table->entries[fontId], fontId);
gSoundFontList[fontId] = *font;
@ -714,7 +713,6 @@ void* AudioLoad_AsyncLoadInner(s32 tableType, s32 id, s32 nChunks, s32 retData,
return ResourceGetDataByCrc((uint64_t) table->entries[id].romAddr);
case FONT_TABLE:
gFontLoadStatus[id] = LOAD_STATUS_COMPLETE;
printf("fontId: %d\n", id);
osSendMesg(retQueue, OS_MESG_32(retData << 0x18), OS_MESG_NOBLOCK);
return Audio_LoadFont(table->entries[id], id);
case SAMPLE_TABLE: