|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Wrapper over juce::AudioDeviceManager that exposes changes as signals. More...
#include <src/gui/backend/device_manager.h>


Public Types | |
| using | XmlStateGetter = std::function<std::unique_ptr<juce::XmlElement> ()> |
| using | XmlStateSetter = std::function<void (const juce::XmlElement &)> |
Public Member Functions | |
| DeviceManager (XmlStateGetter state_getter, XmlStateSetter state_setter) | |
| void | initialize (int max_input_channels, int max_output_channels, bool fallback_to_default) |
| Opens a set of devices ready for use. | |
| void | save_state () |
| void | createAudioDeviceTypes (juce::OwnedArray< juce::AudioIODeviceType > &types) override |
| Q_INVOKABLE void | showDeviceSelector () |
Wrapper over juce::AudioDeviceManager that exposes changes as signals.
Definition at line 17 of file device_manager.h.
| using zrythm::gui::backend::DeviceManager::XmlStateGetter = std::function<std::unique_ptr<juce::XmlElement> ()> |
Definition at line 24 of file device_manager.h.
| using zrythm::gui::backend::DeviceManager::XmlStateSetter = std::function<void (const juce::XmlElement &)> |
Definition at line 25 of file device_manager.h.
| void zrythm::gui::backend::DeviceManager::initialize | ( | int | max_input_channels, |
| int | max_output_channels, | ||
| bool | fallback_to_default ) |
Opens a set of devices ready for use.
| max_input_channels | Max number of input channels (channels used might be less than this). |
| max_output_channels | Max number of output channels (channels used might be less than this). |
| fallback_to_default | Whether to fallback to the default device if opening the device(s) from the state fails. |
This calls juce::AudioDeviceManager::initialise() internally and passes the state obtained from state_getter_.
| ZrythmException | Error occurred in opening the device(s). |