// Scan through devices for various capabilities
RtAudio::DeviceInfo info;
- for ( unsigned int i=0; i<=devices; i++ ) {
+ for ( unsigned int i=0; i<devices; i++ ) {
info = audio.getDeviceInfo( i );
bool isDefaultOutput; // true if this is the default output device.
bool isDefaultInput; // true if this is the default input device.
std::vector<unsigned int> sampleRates; // Supported sample rates.
+ unsigned int preferredSampleRate; // Preferred sample rate, e.g. for WASAPI the system sample rate.
RtAudioFormat nativeFormats; // Bit mask of supported data formats.
};
\endcode