mirror of
https://github.com/sonicdcer/sf64.git
synced 2024-11-23 04:50:05 +00:00
Audio_GetVibratoPitchChange
This commit is contained in:
parent
26bc70724a
commit
8adbcc1f51
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user