From 5eec0bb5b88fc2cb12d328a7dca40202c34a2324 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Thu, 19 Jan 2023 15:24:00 +0100 Subject: [PATCH] Small fix for TeensyVariablePlayback (unuesd var removed). --- UI.hpp | 1 - third-party/TeensyVariablePlayback/src/playresmp.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/UI.hpp b/UI.hpp index 9bb3790..f331e8f 100644 --- a/UI.hpp +++ b/UI.hpp @@ -4536,7 +4536,6 @@ void UI_func_drum_midi_note(uint8_t param) { if (LCDML.FUNC_loop()) // ****** LOOP ********* { - if (midi_learn_mode >= DRUMS_MIDI_NOTE_MIN) configuration.drums.midinote[active_sample] = midi_learn_mode; diff --git a/third-party/TeensyVariablePlayback/src/playresmp.h b/third-party/TeensyVariablePlayback/src/playresmp.h index 12df93f..984c5c8 100644 --- a/third-party/TeensyVariablePlayback/src/playresmp.h +++ b/third-party/TeensyVariablePlayback/src/playresmp.h @@ -91,7 +91,7 @@ class AudioPlayResmp : public AudioStream if (_numChannels == -1) return; - unsigned int i, n; + unsigned int n; audio_block_t *blocks[_numChannels]; int16_t *data[_numChannels]; // only update if we're playing @@ -136,4 +136,4 @@ class AudioPlayResmp : public AudioStream TResamplingReader *reader; }; -#endif // TEENSY_RESAMPLING_SDREADER_PLAYRESMP_H \ No newline at end of file +#endif // TEENSY_RESAMPLING_SDREADER_PLAYRESMP_H