X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=RtAudio.h;h=ea08fdaa34153c321076d6176e6b10f7150f0631;hb=33ce5cdac68e575320f6f867c731536267d79b35;hp=57d2c8dcd2423e828f23fdc60930815ac0274664;hpb=22c00ec584b413374ad5a2c119592acaba5e799e;p=rtaudio-cdist.git 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 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.