From 281ee61146de70dff20b5f5172583b8e7ce6300e Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Fri, 27 Mar 2020 18:05:30 +0100 Subject: [PATCH] local variable can be const --- src/sfizz/Voice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index b3c35a86..719efdfc 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -60,7 +60,7 @@ void sfz::Voice::startVoice(Region* region, int delay, int number, uint8_t value waveOscillator.setWavetable(wave); float phase; - float phaseParam = region->oscillatorPhase; + const float phaseParam = region->oscillatorPhase; if (phaseParam >= 0) { phase = phaseParam * (1.0f / 360.0f); phase -= static_cast(phase);