summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorMarcus Tomlinson <themarcustomlinson@gmail.com>2019-02-24 15:56:50 +0000
committerStephen Sinclair <radarsat1@users.noreply.github.com>2019-02-25 12:03:01 +0100
commit155ccfd9ebbfe3180797266c80a8c83d1dfee42a (patch)
treeed7eb3b8d67341de8ccdbdda02bbaa0582af790e /RtAudio.cpp
parent03599c1281835f886e98da7d15244075ec88913f (diff)
WASAPI : Call tickStreamTime() only once per callback
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index 9c7f154..ce2001d 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -5239,6 +5239,9 @@ void RtApiWasapi::wasapiThread()
captureFlags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY ? RTAUDIO_INPUT_OVERFLOW : 0,
stream_.callbackInfo.userData );
+ // tick stream time
+ RtApi::tickStreamTime();
+
// Handle return value from callback
if ( callbackResult == 1 ) {
// instantiate a thread to stop this thread
@@ -5447,9 +5450,6 @@ void RtApiWasapi::wasapiThread()
// unsetting the callbackPulled flag lets the stream know that
// the audio device is ready for another callback output buffer.
callbackPulled = false;
-
- // tick stream time
- RtApi::tickStreamTime();
}
}