(1) JUCE update side effect (2)Added no-render condition

This commit is contained in:
Takeshi Yokemura
2021-05-01 20:47:48 +09:00
parent fe13594197
commit 6bc8d4bfb7
2 changed files with 8 additions and 3 deletions

View File

@ -106,6 +106,10 @@ void BaseVoice::stopNote (float, bool allowTailOff)
void BaseVoice::renderNextBlock (AudioSampleBuffer& outputBuffer, int startSample, int numSamples)
{
if (getCurrentlyPlayingNote() == -1) {
return;
}
if (angleDelta == 0.0)
{
return;