mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Removed legacy audio mode and fixed ganon sound bug (#657)
This commit is contained in:
parent
eab3b5bd7f
commit
3aa93b9855
10 changed files with 141 additions and 2140 deletions
|
@ -10,8 +10,6 @@ void AudioHeap_DiscardSampleCaches(void);
|
|||
void AudioHeap_DiscardSampleBank(s32 sampleBankId);
|
||||
void AudioHeap_DiscardSampleBanks(void);
|
||||
|
||||
extern bool gUseLegacySD;
|
||||
|
||||
f32 func_800DDE20(f32 arg0) {
|
||||
return 256.0f * gAudioContext.audioBufferParameters.unkUpdatesPerFrameScaled / arg0;
|
||||
}
|
||||
|
@ -1205,15 +1203,6 @@ void AudioHeap_DiscardSampleCacheEntry(SampleCacheEntry* entry) {
|
|||
|
||||
void AudioHeap_UnapplySampleCache(SampleCacheEntry* entry, SoundFontSample* sample)
|
||||
{
|
||||
if (!gUseLegacySD)
|
||||
return;
|
||||
|
||||
if (sample != NULL) {
|
||||
if (sample->sampleAddr == entry->allocatedAddr) {
|
||||
sample->sampleAddr = entry->sampleAddr;
|
||||
sample->medium = entry->origMedium;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SampleCacheEntry* AudioHeap_AllocPersistentSampleCacheEntry(size_t size) {
|
||||
|
@ -1248,6 +1237,8 @@ void AudioHeap_DiscardSampleCaches(void) {
|
|||
s32 fontId;
|
||||
s32 j;
|
||||
|
||||
return;
|
||||
|
||||
numFonts = gAudioContext.soundFontTable->numEntries;
|
||||
for (fontId = 0; fontId < numFonts; fontId++) {
|
||||
sampleBankId1 = gAudioContext.soundFonts[fontId].sampleBankId1;
|
||||
|
@ -1317,6 +1308,8 @@ void AudioHeap_ApplySampleBankCacheInternal(s32 apply, s32 sampleBankId) {
|
|||
u32* fakematch;
|
||||
s32 pad[4];
|
||||
|
||||
return;
|
||||
|
||||
sampleBankTable = gAudioContext.sampleBankTable;
|
||||
numFonts = gAudioContext.soundFontTable->numEntries;
|
||||
change.oldAddr = AudioHeap_SearchCaches(SAMPLE_TABLE, CACHE_EITHER, sampleBankId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue