Public Member Functions | Public Attributes

AudioDeviceManager::AudioDeviceSetup Struct Reference

This structure holds a set of properties describing the current audio setup. More...

List of all members.

Public Member Functions

 AudioDeviceSetup ()
 Creates an AudioDeviceSetup object.
bool operator== (const AudioDeviceSetup &other) const

Public Attributes

String outputDeviceName
 The name of the audio device used for output.
String inputDeviceName
 The name of the audio device used for input.
double sampleRate
 The current sample rate.
int bufferSize
 The buffer size, in samples.
BigInteger inputChannels
 The set of active input channels.
bool useDefaultInputChannels
 If this is true, it indicates that the inputChannels array should be ignored, and instead, the device's default channels should be used.
BigInteger outputChannels
 The set of active output channels.
bool useDefaultOutputChannels
 If this is true, it indicates that the outputChannels array should be ignored, and instead, the device's default channels should be used.

Detailed Description

This structure holds a set of properties describing the current audio setup.

An AudioDeviceManager uses this class to save/load its current settings, and to specify your preferred options when opening a device.

See also:
AudioDeviceManager::setAudioDeviceSetup(), AudioDeviceManager::initialise()

Constructor & Destructor Documentation

AudioDeviceManager::AudioDeviceSetup::AudioDeviceSetup (  )

Creates an AudioDeviceSetup object.

The default constructor sets all the member variables to indicate default values. You can then fill-in any values you want to before passing the object to AudioDeviceManager::initialise().


Member Function Documentation

bool AudioDeviceManager::AudioDeviceSetup::operator== ( const AudioDeviceSetup other ) const

Member Data Documentation

The name of the audio device used for output.

The name has to be one of the ones listed by the AudioDeviceManager's currently selected device type. This may be the same as the input device. An empty string indicates the default device.

The name of the audio device used for input.

This may be the same as the output device. An empty string indicates the default device.

The current sample rate.

This rate is used for both the input and output devices. A value of 0 indicates the default rate.

The buffer size, in samples.

This buffer size is used for both the input and output devices. A value of 0 indicates the default buffer size.

The set of active input channels.

The bits that are set in this array indicate the channels of the input device that are active. If useDefaultInputChannels is true, this value is ignored.

If this is true, it indicates that the inputChannels array should be ignored, and instead, the device's default channels should be used.

The set of active output channels.

The bits that are set in this array indicate the channels of the input device that are active. If useDefaultOutputChannels is true, this value is ignored.

If this is true, it indicates that the outputChannels array should be ignored, and instead, the device's default channels should be used.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines