Struct DeviceInfo


#include <RtAudio.h>

struct DeviceInfo


The public device information structure for returning queried values.

Mentioned in

  • Advanced Tutorial / Probe


DeviceInfoDefault constructor.


Lines 299-315 in RtAudio.h.

struct DeviceInfo {
  bool probed;                  /*!< true if the device capabilities were successfully probed. */
  std::string name;             /*!< Character string device identifier. */
  unsigned int outputChannels;  /*!< Maximum output channels supported by device. */
  unsigned int inputChannels;   /*!< Maximum input channels supported by device. */
  unsigned int duplexChannels;  /*!< Maximum simultaneous input/output channels supported by device. */
  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, e.g. for WASAPI the system sample rate. */
  RtAudioFormat nativeFormats;  /*!< Bit mask of supported data formats. */
  // Default constructor.
    :probed(false), outputChannels(0), inputChannels(0), duplexChannels(0),
     isDefaultOutput(false), isDefaultInput(false), preferredSampleRate(0), nativeFormats(0) {}

Add Discussion as Guest

Log in