projects
/
rtaudio-cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
709e1a3
)
Stop PulseAudio callback busy-waiting when stream is stopped.
author
Carl Hetherington
<cth@carlh.net>
Sat, 19 Mar 2016 21:14:37 +0000
(21:14 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 19 Mar 2016 21:14:37 +0000
(21:14 +0000)
This sets the runnable flag to false, as is done for other APIs.
RtAudio.cpp
patch
|
blob
|
history
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index 882fa0e2830202407c2f17814c8a4e372947993d..5284bdb329b145fca84af16dc16f74c7417bf89d 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-8337,6
+8337,7
@@
void RtApiPulse::stopStream( void )
}
\r
\r
stream_.state = STREAM_STOPPED;
\r
+ pah->runnable = false;
\r
MUTEX_LOCK( &stream_.mutex );
\r
\r
if ( pah && pah->s_play ) {
\r
@@
-8371,6
+8372,7
@@
void RtApiPulse::abortStream( void )
}
\r
\r
stream_.state = STREAM_STOPPED;
\r
+ pah->runnable = false;
\r
MUTEX_LOCK( &stream_.mutex );
\r
\r
if ( pah && pah->s_play ) {
\r