]> Repos - portaudio/commitdiff
doccomment for PaAsio_SetStreamSampleRate()
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 21 Jan 2009 10:20:42 +0000 (10:20 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 21 Jan 2009 10:20:42 +0000 (10:20 +0000)
include/pa_asio.h

index a164a6a19ea51e62a93cb53c242f796149f242ed..9360ee0649fa82244daf5162365d1376520e0031 100644 (file)
@@ -100,6 +100,19 @@ PaError PaAsio_GetOutputChannelName( PaDeviceIndex device, int channelIndex,
         const char** channelName );
 
 
+/** Set the sample rate of an open paASIO stream.
+ @param stream The stream to operate on.
+ @param sampleRate The new sample rate. 
+
+ Note that this function may fail if the stream is alredy running and the 
+ ASIO driver does not support switching the sample rate of a running stream.
+
+ Returns paIncompatibleStreamHostApi if stream is not a paASIO stream.
+*/
+PaError PaAsio_SetStreamSampleRate( PaStream* stream, double sampleRate );
+
+
 #define paAsioUseChannelSelectors      (0x01)
 
 typedef struct PaAsioStreamInfo{