diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2017-08-22 17:44:02 -0700 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2017-08-22 17:44:02 -0700 |
| commit | 62f62cf90364040706863bd574d340e7c82216c3 (patch) | |
| tree | 6a39cf1e549b566f7cd522904639d85494391d92 /RtAudio.cpp | |
| parent | ee94a98f961163e8ddf59b8cddee32bc9f3c6b67 (diff) | |
Fix to initialize lastTickTimestamp when setting stream time.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 3 |
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 )
|
