Fix sfxr buffer noise (#3883)

This commit is contained in:
Hyunjin Song
2017-10-17 00:14:47 +09:00
committed by Oskar Wallgren
parent 2930ef69cd
commit eaa7b0dd7c

View File

@@ -464,6 +464,7 @@ void sfxrInstrument::playNote( NotePlayHandle * _n, sampleFrame * _working_buffe
}
else if( static_cast<SfxrSynth*>(_n->m_pluginData)->isPlaying() == false )
{
memset(_working_buffer + offset, 0, sizeof(sampleFrame) * frameNum);
_n->noteOff();
return;
}