diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2014-04-26 14:39:15 -0400 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2014-04-26 14:39:15 -0400 |
| commit | 22c00ec584b413374ad5a2c119592acaba5e799e (patch) | |
| tree | b695c4d67cd2d0b4973584dd4767ce6d430f14a4 /RtAudio.cpp | |
| parent | 097b83163e65b9828a2bddffd15dc1504a1acab4 (diff) | |
Added new setStreamTime function; Documentation updates for 4.1.1 release.4.1.1
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 9f12016..af7d205 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -38,7 +38,7 @@ */
/************************************************************************/
-// RtAudio: Version 4.1.1pre
+// RtAudio: Version 4.1.1
#include "RtAudio.h"
#include <iostream>
@@ -404,6 +404,14 @@ double RtApi :: getStreamTime( void ) #endif
}
+void RtApi :: setStreamTime( double time )
+{
+ verifyStream();
+
+ if ( time >= 0.0 )
+ stream_.streamTime = time;
+}
+
unsigned int RtApi :: getStreamSampleRate( void )
{
verifyStream();
|
