Function getStreamSampleRate

Synopsis

#include <RtAudio.h>

unsigned int getStreamSampleRate(void)

Description

Returns actual sample rate in use by the stream.

On some systems, the sample rate used may be slightly different than that specified in the stream parameters. If a stream is not open, an RtAudioError (type = INVALID_USE) will be thrown.

Source

Lines 882-882 in RtAudio.h. Line 607 in RtAudio.h.

inline unsigned int RtAudio :: getStreamSampleRate( void ) { return rtapi_->getStreamSampleRate(); }





Add Discussion as Guest

Log in