summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2017-08-22 17:44:02 -0700
committerGary Scavone <gary@music.mcgill.ca>2017-08-22 17:44:02 -0700
commit62f62cf90364040706863bd574d340e7c82216c3 (patch)
tree6a39cf1e549b566f7cd522904639d85494391d92 /RtAudio.cpp
parentee94a98f961163e8ddf59b8cddee32bc9f3c6b67 (diff)
Fix to initialize lastTickTimestamp when setting stream time.
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index 1611e09..5d49366 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -428,6 +428,9 @@ void RtApi :: setStreamTime( double time )
if ( time >= 0.0 )
stream_.streamTime = time;
+#if defined( HAVE_GETTIMEOFDAY )
+ gettimeofday( &stream_.lastTickTimestamp, NULL );
+#endif
}
unsigned int RtApi :: getStreamSampleRate( void )