AudioDeviceSelectorComponent Class Reference

Inheritance diagram for AudioDeviceSelectorComponent:

Component ComboBoxListener ButtonListener ChangeListener MouseListener MessageListener List of all members.

Detailed Description

A component containing controls to let the user change the audio settings of an AudioDeviceManager object.

Very easy to use - just create one of these and show it to the user.

See also:
AudioDeviceManager


Public Member Functions

 AudioDeviceSelectorComponent (AudioDeviceManager &deviceManager, const int minAudioInputChannels, const int maxAudioInputChannels, const int minAudioOutputChannels, const int maxAudioOutputChannels, const bool showMidiInputOptions, const bool showMidiOutputSelector)
 Creates the component.
 ~AudioDeviceSelectorComponent ()
 Destructor.
void resized ()
void comboBoxChanged (ComboBox *)
void buttonClicked (Button *)
void changeListenerCallback (void *)


Constructor & Destructor Documentation

AudioDeviceSelectorComponent::AudioDeviceSelectorComponent AudioDeviceManager deviceManager,
const int  minAudioInputChannels,
const int  maxAudioInputChannels,
const int  minAudioOutputChannels,
const int  maxAudioOutputChannels,
const bool  showMidiInputOptions,
const bool  showMidiOutputSelector
 

Creates the component.

If your app needs only output channels, you might ask for a maximum of 0 input channels, and the component won't display any options for choosing the input channels. And likewise if you're doing an input-only app.

Parameters:
deviceManager the device manager that this component should control
minAudioInputChannels the minimum number of audio input channels that the application needs
maxAudioInputChannels the maximum number of audio input channels that the application needs
minAudioOutputChannels the minimum number of audio output channels that the application needs
maxAudioOutputChannels the maximum number of audio output channels that the application needs
showMidiInputOptions if true, the component will allow the user to select which midi inputs are enabled
showMidiOutputSelector if true, the component will let the user choose a default midi output device

AudioDeviceSelectorComponent::~AudioDeviceSelectorComponent  ) 
 

Destructor.


Member Function Documentation

void AudioDeviceSelectorComponent::resized  )  [virtual]
 

For internal use only.

Reimplemented from Component.

void AudioDeviceSelectorComponent::comboBoxChanged ComboBox  )  [virtual]
 

For internal use only.

Implements ComboBoxListener.

void AudioDeviceSelectorComponent::buttonClicked Button  )  [virtual]
 

For internal use only.

Implements ButtonListener.

void AudioDeviceSelectorComponent::changeListenerCallback void *   )  [virtual]
 

For internal use only.

Implements ChangeListener.


The documentation for this class was generated from the following file: