Long style cast
This commit is contained in:
parent
20f2f59a0b
commit
c41f26bf9d
1 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ namespace fx {
|
|||
case hash("apan_phase"):
|
||||
if (auto value = readOpcode(opc.value, Default::apanPhaseRange)) {
|
||||
float phase = *value / 360.0f;
|
||||
phase -= (int)phase;
|
||||
phase -= static_cast<int>(phase);
|
||||
fx->_lfoPhaseOffset = phase;
|
||||
}
|
||||
break;
|
||||
|
|
@ -139,13 +139,13 @@ namespace fx {
|
|||
|
||||
for (unsigned i = 0; i < nframes; ++i) {
|
||||
float phaseRight = phaseLeft + offset;
|
||||
phaseRight -= (int)phaseRight;
|
||||
phaseRight -= static_cast<int>(phaseRight);
|
||||
|
||||
left[i] = lfo::evaluateAtPhase<Wave>(phaseLeft);
|
||||
right[i] = lfo::evaluateAtPhase<Wave>(phaseRight);
|
||||
|
||||
phaseLeft += frequency * samplePeriod;
|
||||
phaseLeft -= (int)phaseLeft;
|
||||
phaseLeft -= static_cast<int>(phaseLeft);
|
||||
}
|
||||
|
||||
_lfoPhase = phaseLeft;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue