Add an assertion

This commit is contained in:
Paul Ferrand 2020-03-27 18:05:40 +01:00
parent 281ee61146
commit 3f3cb7def8

View file

@ -32,6 +32,7 @@ void WavetableOscillator::setWavetable(const WavetableMulti* wave)
void WavetableOscillator::setPhase(float phase)
{
ASSERT(phase >= 0.0f && phase <= 1.0f);
_phase = phase;
}