Change "eg." to "e.g."
[rtaudio-cdist.git] / doc / doxygen / probe.txt
index dd8c51160b583e9393ca336843580b5cf87b48a5..69970009f29f02715625a2912cf0421ca3c28351 100644 (file)
@@ -18,7 +18,7 @@ int main()
 
   // 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 );
 
@@ -45,6 +45,7 @@ The RtAudio::DeviceInfo structure is defined in RtAudio.h and provides a variety
     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