Add an assertion
This commit is contained in:
parent
281ee61146
commit
3f3cb7def8
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ void WavetableOscillator::setWavetable(const WavetableMulti* wave)
|
||||||
|
|
||||||
void WavetableOscillator::setPhase(float phase)
|
void WavetableOscillator::setPhase(float phase)
|
||||||
{
|
{
|
||||||
|
ASSERT(phase >= 0.0f && phase <= 1.0f);
|
||||||
_phase = phase;
|
_phase = phase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue