From 96be500dd1df926c34510d334ff337df7710c59e Mon Sep 17 00:00:00 2001 From: casey langen Date: Thu, 29 Dec 2022 20:15:38 -0800 Subject: [PATCH] Return abort instead of complete to stop playback immediately. --- src/plugins/portaudioout/PortAudioOut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/portaudioout/PortAudioOut.cpp b/src/plugins/portaudioout/PortAudioOut.cpp index 9e1942098..d25ab7adc 100644 --- a/src/plugins/portaudioout/PortAudioOut.cpp +++ b/src/plugins/portaudioout/PortAudioOut.cpp @@ -111,7 +111,7 @@ int portAudioStreamCallback( if (self->state == PortAudioOut::StatePaused || self->state == PortAudioOut::StateStopped) { - return paComplete; + return paAbort; } auto context = self->buffers.front();