summaryrefslogtreecommitdiff
path: root/quantum/audio/voices.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/audio/voices.c')
-rw-r--r--quantum/audio/voices.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/quantum/audio/voices.c b/quantum/audio/voices.c
index 8988d827e9..d43fb8d169 100644
--- a/quantum/audio/voices.c
+++ b/quantum/audio/voices.c
@@ -35,7 +35,6 @@ voice_type voice = default_voice;
void set_voice(voice_type v) { voice = v; }
void voice_iterate() { voice = (voice + 1) % number_of_voices; }
-
void voice_deiterate() { voice = (voice - 1 + number_of_voices) % number_of_voices; }
#ifdef AUDIO_VOICES
@@ -257,7 +256,7 @@ float voice_envelope(float frequency) {
case 0 ... VOICE_VIBRATO_DELAY:
break;
default:
- // TODO: merge/replace with voice_add_vibrato above
+
frequency = frequency * vibrato_lut[(int)fmod((((float)compensated_index - (VOICE_VIBRATO_DELAY + 1)) / 1000 * VOICE_VIBRATO_SPEED), VIBRATO_LUT_LENGTH)];
break;
}