Removed gAiFrequency

This commit is contained in:
KiritoDv
2023-09-22 18:31:12 -06:00
parent 31f3e7b61d
commit 90607b162e
4 changed files with 0 additions and 7 deletions
-1
View File
@@ -1188,7 +1188,6 @@ void audio_reset_session(void) {
#endif
#else
reverbWindowSize = preset->reverbWindowSize;
// gAiFrequency = GameEngine_GetSampleRate();
gMaxSimultaneousNotes = preset->maxSimultaneousNotes;
gSamplesPerFrameTarget = GameEngine_GetSampleRate() / 60;
gReverbDownsampleRate = preset->reverbDownsampleRate;
-2
View File
@@ -65,8 +65,6 @@ u16 gSequenceCount;
#if defined(VERSION_EU)
u32 padEuBss1;
struct AudioBufferParametersEU gAudioBufferParameters;
#elif defined(VERSION_US) || defined(VERSION_JP)
s32 gAiFrequency;
#endif
u32 sDmaBufSize;
-1
View File
@@ -34,7 +34,6 @@ extern u32 gSampleDmaNumListItems;
#if defined(VERSION_EU) || defined(VERSION_SH)
extern struct AudioBufferParametersEU gAudioBufferParameters;
#endif
extern s32 gAiFrequency;
#ifdef VERSION_SH
extern s16 gCurrAiBufferLength;
extern s32 D_SH_8034F68C;
-3
View File
@@ -605,9 +605,6 @@ void process_notes(void) {
scale = note->adsrVolScale;
frequency *= note->vibratoFreqScale * note->portamentoFreqScale;
cap = 3.99992f;
// if (gAiFrequency != 32006) {
// frequency *= US_FLOAT(32000.0) / (f32) gAiFrequency;
// }
frequency = (frequency < cap ? frequency : cap);
scale *= 4.3498e-5f; // ~1 / 23000
velocity = velocity * scale * scale;