Add some assertions to check
This commit is contained in:
parent
cc8944e452
commit
78851082ea
1 changed files with 3 additions and 0 deletions
|
|
@ -162,7 +162,9 @@ void sfz::Voice::release(int delay, bool fastRelease) noexcept
|
||||||
|
|
||||||
void sfz::Voice::registerNoteOff(int delay, int noteNumber, float velocity) noexcept
|
void sfz::Voice::registerNoteOff(int delay, int noteNumber, float velocity) noexcept
|
||||||
{
|
{
|
||||||
|
ASSERT(velocity >= 0.0 && velocity <= 1.0);
|
||||||
UNUSED(velocity);
|
UNUSED(velocity);
|
||||||
|
|
||||||
if (region == nullptr)
|
if (region == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -182,6 +184,7 @@ void sfz::Voice::registerNoteOff(int delay, int noteNumber, float velocity) noex
|
||||||
|
|
||||||
void sfz::Voice::registerCC(int delay, int ccNumber, float ccValue) noexcept
|
void sfz::Voice::registerCC(int delay, int ccNumber, float ccValue) noexcept
|
||||||
{
|
{
|
||||||
|
ASSERT(ccValue >= 0.0 && ccValue <= 1.0);
|
||||||
if (region == nullptr)
|
if (region == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue