summaryrefslogtreecommitdiff
path: root/quantum/audio/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/audio/audio.c')
-rw-r--r--quantum/audio/audio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c
index 04f3460033..3192d500f5 100644
--- a/quantum/audio/audio.c
+++ b/quantum/audio/audio.c
@@ -271,12 +271,13 @@ float vibrato(float average_freq) {
#ifdef C6_AUDIO
ISR(TIMER3_COMPA_vect)
{
- float freq, freq_alt = 0;
+ float freq;
if (playing_note) {
if (voices > 0) {
#ifdef B5_AUDIO
+ float freq_alt = 0;
if (voices > 1) {
if (polyphony_rate == 0) {
if (glissando) {