Fix to initialize lastTickTimestamp when setting stream time.
authorGary Scavone <gary@music.mcgill.ca>
Wed, 23 Aug 2017 00:44:02 +0000 (17:44 -0700)
committerGary Scavone <gary@music.mcgill.ca>
Wed, 23 Aug 2017 00:44:02 +0000 (17:44 -0700)
RtAudio.cpp

index 1611e09e3828fcae775e560232e9e35884d8d2a2..5d49366358f450fcfdf400206b31df22437e7673 100644 (file)
@@ -428,6 +428,9 @@ void RtApi :: setStreamTime( double time )
 \r
   if ( time >= 0.0 )\r
     stream_.streamTime = time;\r
+#if defined( HAVE_GETTIMEOFDAY )\r
+  gettimeofday( &stream_.lastTickTimestamp, NULL );\r
+#endif\r
 }\r
 \r
 unsigned int RtApi :: getStreamSampleRate( void )\r