Return abort instead of complete to stop playback immediately.

This commit is contained in:
casey langen 2022-12-29 20:15:38 -08:00
parent 10309ce888
commit 96be500dd1

View File

@ -111,7 +111,7 @@ int portAudioStreamCallback(
if (self->state == PortAudioOut::StatePaused ||
self->state == PortAudioOut::StateStopped)
{
return paComplete;
return paAbort;
}
auto context = self->buffers.front();