diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-04-15 12:24:46 +0100 |
|---|---|---|
| committer | cah <cah@ableton.com> | 2019-12-03 11:16:07 +0100 |
| commit | 5157202ab48af46323ba3d37de6837ac3e90ae5e (patch) | |
| tree | 0f3196d0dc8bc917be4089e4a32ff171645cb804 /RtAudio.cpp | |
| parent | 4ba65da5277a6b12b69e40877adaff03ae644ed1 (diff) | |
Stop PulseAudio callback busy-waiting when stream is stopped.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index f38c60f..d80660e 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -8673,6 +8673,7 @@ void RtApiPulse::stopStream( void ) } stream_.state = STREAM_STOPPED; + pah->runnable = false; MUTEX_LOCK( &stream_.mutex ); if ( pah && pah->s_play ) { @@ -8707,6 +8708,7 @@ void RtApiPulse::abortStream( void ) } stream_.state = STREAM_STOPPED; + pah->runnable = false; MUTEX_LOCK( &stream_.mutex ); if ( pah && pah->s_play ) { |
