Audio_GetVibratoPitchChange
Some checks failed
Build / Build repo (push) Has been cancelled
Check Format / Check format (push) Has been cancelled

This commit is contained in:
Alejandro Javier Asenjo Nitti 2024-11-10 18:00:10 -03:00
parent 26bc70724a
commit 8adbcc1f51
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;