A component containing controls to let the user change the audio settings of an AudioDeviceManager object. More...
Inherits Component, ComboBox::Listener, and ChangeListener.
Public Member Functions | |
| AudioDeviceSelectorComponent (AudioDeviceManager &deviceManager, const int minAudioInputChannels, const int maxAudioInputChannels, const int minAudioOutputChannels, const int maxAudioOutputChannels, const bool showMidiInputOptions, const bool showMidiOutputSelector, const bool showChannelsAsStereoPairs, const bool hideAdvancedOptionsWithButton) | |
| Creates the component. | |
| ~AudioDeviceSelectorComponent () | |
| Destructor. | |
| void | resized () |
| Called when this component's size has been changed. | |
| void | comboBoxChanged (ComboBox *) |
| Called when a ComboBox has its selected item changed. | |
| void | buttonClicked (Button *) |
| void | changeListenerCallback (ChangeBroadcaster *) |
| Your subclass should implement this method to receive the callback. | |
| void | childBoundsChanged (Component *) |
| Called when one of this component's children is moved or resized. | |
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.
| AudioDeviceSelectorComponent::AudioDeviceSelectorComponent | ( | AudioDeviceManager & | deviceManager, |
| const int | minAudioInputChannels, | ||
| const int | maxAudioInputChannels, | ||
| const int | minAudioOutputChannels, | ||
| const int | maxAudioOutputChannels, | ||
| const bool | showMidiInputOptions, | ||
| const bool | showMidiOutputSelector, | ||
| const bool | showChannelsAsStereoPairs, | ||
| const bool | hideAdvancedOptionsWithButton | ||
| ) |
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.
| 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 |
| showChannelsAsStereoPairs | if true, channels will be treated as pairs; if false, channels will be treated as a set of separate mono channels. |
| hideAdvancedOptionsWithButton | if true, only the minimum amount of UI components are shown, with an "advanced" button that shows the rest of them |
| AudioDeviceSelectorComponent::~AudioDeviceSelectorComponent | ( | ) |
Destructor.
| void AudioDeviceSelectorComponent::resized | ( | ) | [virtual] |
Called when this component's size has been changed.
A component can implement this method to do things such as laying out its child components when its width or height changes.
The method is called synchronously as a result of the setBounds or setSize methods, so repeatedly changing a components size will repeatedly call its resized method (unlike things like repainting, where multiple calls to repaint are coalesced together).
If the component is a top-level window on the desktop, its size could also be changed by operating-system factors beyond the application's control.
Reimplemented from Component.
| void AudioDeviceSelectorComponent::comboBoxChanged | ( | ComboBox * | comboBoxThatHasChanged ) | [virtual] |
Called when a ComboBox has its selected item changed.
Implements ComboBox::Listener.
| void AudioDeviceSelectorComponent::buttonClicked | ( | Button * | ) |
| void AudioDeviceSelectorComponent::changeListenerCallback | ( | ChangeBroadcaster * | source ) | [virtual] |
Your subclass should implement this method to receive the callback.
| source | the ChangeBroadcaster that triggered the callback. |
Implements ChangeListener.
| void AudioDeviceSelectorComponent::childBoundsChanged | ( | Component * | child ) | [virtual] |
Called when one of this component's children is moved or resized.
If the parent wants to know about changes to its immediate children (not to children of its children), this is the method to override.
Reimplemented from Component.