Corrected an issue in the registerCC function of the voices that did not check the attached region for nullptr
This commit is contained in:
parent
ee6f714b3e
commit
37f55b8ca9
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ void sfz::Voice::registerNoteOff(int delay, int channel, int noteNumber, uint8_t
|
|||
|
||||
void sfz::Voice::registerCC(int delay, int channel [[maybe_unused]], int ccNumber, uint8_t ccValue) noexcept
|
||||
{
|
||||
if (region == nullptr)
|
||||
return;
|
||||
|
||||
if (ccNumber == 64 && noteIsOff && ccValue < 63)
|
||||
release(delay);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue