diff --git a/linker_scripts/us/rev1/symbol_addrs_audio.txt b/linker_scripts/us/rev1/symbol_addrs_audio.txt index 8281a1c1..5d5fdb47 100644 --- a/linker_scripts/us/rev1/symbol_addrs_audio.txt +++ b/linker_scripts/us/rev1/symbol_addrs_audio.txt @@ -364,7 +364,7 @@ Audio_NoteInitAll = 0x800132E8; Audio_SequenceChannelProcessSound = 0x80013400; Audio_SequencePlayerProcessSound = 0x800135A8; Audio_GetPortamentoFreqScale = 0x80013708; -func_800137DC = 0x800137DC; +Audio_GetVibratoPitchChange = 0x800137DC; Audio_GetVibratoFreqScale = 0x80013820; Audio_NoteVibratoUpdate = 0x80013A18; Audio_NoteVibratoInit = 0x80013A84; diff --git a/src/audio/audio_effects.c b/src/audio/audio_effects.c index c038a199..5e4de352 100644 --- a/src/audio/audio_effects.c +++ b/src/audio/audio_effects.c @@ -84,7 +84,7 @@ f32 Audio_GetPortamentoFreqScale(Portamento* portamento) { return temp2; } -s16 func_800137DC(VibratoState* vibrato) { +s16 Audio_GetVibratoPitchChange(VibratoState* vibrato) { s32 index; vibrato->time += (s32) vibrato->rate; @@ -130,7 +130,7 @@ f32 Audio_GetVibratoFreqScale(VibratoState* vibrato) { if (vibrato->depth == 0.0f) { return 1.0f; } - ret = func_800137DC(vibrato); + ret = Audio_GetVibratoPitchChange(vibrato); temp = vibrato->depth / 4096.0f; temp2 = 1.0f + temp * (gBendPitchOneOctaveFrequencies[0x80 + ret] - 1.0f); return temp2;