projects
/
rtaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee94a98
)
Fix to initialize lastTickTimestamp when setting stream time.
author
Gary Scavone
<gary@music.mcgill.ca>
Wed, 23 Aug 2017 00:44:02 +0000
(17:44 -0700)
committer
Gary Scavone
<gary@music.mcgill.ca>
Wed, 23 Aug 2017 00:44:02 +0000
(17:44 -0700)
RtAudio.cpp
patch
|
blob
|
history
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index 1611e09e3828fcae775e560232e9e35884d8d2a2..5d49366358f450fcfdf400206b31df22437e7673 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-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