summaryrefslogtreecommitdiff
path: root/RtAudio.h
diff options
context:
space:
mode:
authoryedey <myco@gmx.net>2014-10-06 14:08:51 +0200
committeryedey <myco@gmx.net>2014-10-06 14:08:51 +0200
commit53ac6ffe14afbabc4903ff68e054a8bb46b5d513 (patch)
tree56f0186470297287a60d322aea25dd0d4917da83 /RtAudio.h
parentb9e6faacf4b46eae0c6f05ad02d560681de4edfd (diff)
Fixed major ASIO duplex initialization bug. Added "preferredSampleRate" to the device info.
Diffstat (limited to 'RtAudio.h')
-rw-r--r--RtAudio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/RtAudio.h b/RtAudio.h
index 57d2c8d..ea08fda 100644
--- a/RtAudio.h
+++ b/RtAudio.h
@@ -286,12 +286,13 @@ class RtAudio
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 (queried from list of standard rates). */
+ unsigned int preferredSampleRate; /*!< Preferred sample rate, eg. for WASAPI the system sample rate. */
RtAudioFormat nativeFormats; /*!< Bit mask of supported data formats. */
// Default constructor.
DeviceInfo()
:probed(false), outputChannels(0), inputChannels(0), duplexChannels(0),
- isDefaultOutput(false), isDefaultInput(false), nativeFormats(0) {}
+ isDefaultOutput(false), isDefaultInput(false), preferredSampleRate(0), nativeFormats(0) {}
};
//! The structure for specifying input or ouput stream parameters.