summaryrefslogtreecommitdiff
path: root/soh/src/code/audio_load.c
diff options
context:
space:
mode:
authorNicholas Estelami <NEstelami@users.noreply.github.com>2022-06-10 15:40:19 -0400
committerNicholas Estelami <NEstelami@users.noreply.github.com>2022-06-15 15:57:52 -0400
commit262d067870ec580dd41e1e797537026a9dbcd37b (patch)
tree9668b4bd9fa1dbd46878afac9fe4ac4e8dbf4929 /soh/src/code/audio_load.c
parent44874a0763afdb79b3a79d18a445eb3b79757e88 (diff)
Fixed resample and corrupt audio bug. Minor documentation updates.
Diffstat (limited to 'soh/src/code/audio_load.c')
-rw-r--r--soh/src/code/audio_load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/soh/src/code/audio_load.c b/soh/src/code/audio_load.c
index 0732d2fa3..3056a442b 100644
--- a/soh/src/code/audio_load.c
+++ b/soh/src/code/audio_load.c
@@ -1421,6 +1421,10 @@ void AudioLoad_Init(void* heap, u32 heapSize) {
uintptr_t bankStart = ResourceMgr_LoadFileRaw(_AudiobankSegmentRomStart);
uintptr_t tableStart = ResourceMgr_LoadFileRaw(_AudiotableSegmentRomStart);
+ // If we have the old audioseq files present (and this is a 32-bit build), use the legacy audio system
+ if (seqStart != NULL && bankStart != NULL && tableStart != NULL)
+ gUseLegacySD = true;
+
fontStart = bankStart;
AudioLoad_InitTable(gAudioContext.sequenceTable, seqStart, 0);