projects
/
rtaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba65da
)
Bug fix for stream ticking in OS-X if using two different devices.
author
Gary Scavone
<gary@music.mcgill.ca>
Tue, 16 Apr 2019 16:06:18 +0000
(12:06 -0400)
committer
Gary Scavone
<gary@music.mcgill.ca>
Tue, 16 Apr 2019 16:06:18 +0000
(12:06 -0400)
RtAudio.cpp
patch
|
blob
|
history
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index f38c60f0d8461521ed8043e33f020ea80fb0ec3e..33ae87b08f63cb0d55a42ca871b209de770051ef 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-1905,7
+1905,10
@@
bool RtApiCore :: callbackEvent( AudioDeviceID deviceId,
unlock:
//MUTEX_UNLOCK( &stream_.mutex );
- RtApi::tickStreamTime();
+ // Make sure to only tick duplex stream time once if using two devices
+ if ( stream_.mode != DUPLEX || (stream_.mode == DUPLEX && handle->id[0] != handle->id[1] && deviceId == handle->id[0] ) )
+ RtApi::tickStreamTime();
+
return SUCCESS;
}