local variable can be const
This commit is contained in:
parent
890d5ddb46
commit
281ee61146
1 changed files with 1 additions and 1 deletions
|
|
@ -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<int>(phase);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue