diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2019-04-16 12:06:18 -0400 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2019-04-16 12:06:18 -0400 |
| commit | c962b1a4e903c828bdfe6eabd6be2c134459df48 (patch) | |
| tree | b3999e44cbfae98ffdfcf30a11b0acfb40bb18db /RtAudio.cpp | |
| parent | 4ba65da5277a6b12b69e40877adaff03ae644ed1 (diff) | |
Bug fix for stream ticking in OS-X if using two different devices.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index f38c60f..33ae87b 100644 --- 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; } |
