TracktionEngine
|
A (virtual) audio output device. More...
Public Member Functions | |
WaveOutputDevice (Engine &, const juce::String &name, const std::vector< ChannelIndex > &channels) | |
~WaveOutputDevice () override | |
void | resetToDefault () |
void | setEnabled (bool) override |
const std::vector< ChannelIndex > & | getChannels () const noexcept |
const juce::AudioChannelSet & | getChannelSet () const noexcept |
void | reverseChannels (bool) |
bool | isReversed () const |
void | setDithered (bool) |
bool | isDithered () const |
int | getLeftChannel () const |
Returns the left channel index. More... | |
int | getRightChannel () const |
Returns the right channel index. More... | |
bool | isStereoPair () const |
Returns true if the output is a stereo pair. More... | |
void | setStereoPair (bool) |
WaveOutputDeviceInstance * | createInstance (EditPlaybackContext &) |
Public Member Functions inherited from tracktion::engine::OutputDevice | |
OutputDevice (Engine &, const juce::String &type, const juce::String &name) | |
~OutputDevice () override | |
virtual juce::String | getName () const |
juce::String | getAlias () const |
the alias is the name shown in the draggable input device components More... | |
void | setAlias (const juce::String &alias) |
void | initialiseDefaultAlias () |
Called after all devices are constructed, so it can use all the device names in its calculations. More... | |
juce::String | getDeviceID () const |
juce::String | getSelectableDescription () override |
Subclasses must return a description of what they are. More... | |
bool | isEnabled () const |
virtual bool | isMidi () const |
Public Member Functions inherited from tracktion::engine::Selectable | |
Selectable () | |
virtual | ~Selectable () |
virtual void | selectionStatusChanged (bool isNowSelected) |
Can be overridden to tell this object that it has just been selected or deselected. More... | |
virtual void | changed () |
This should be called to send a change notification to any SelectableListeners that are registered with this object. More... | |
virtual void | selectableAboutToBeDeleted () |
Called just before the selectable is about to be deleted so any subclasses should still be valid at this point. More... | |
void | addSelectableListener (SelectableListener *) |
void | removeSelectableListener (SelectableListener *) |
void | cancelAnyPendingUpdates () |
If changed() has been called, this will cancel any pending async change notificaions. More... | |
void | deselect () |
void | propertiesChanged () |
void | notifyListenersOfDeletion () |
WeakRef | getWeakRef () |
Protected Member Functions | |
juce::String | openDevice () override |
void | closeDevice () override |
Additional Inherited Members | |
Public Types inherited from tracktion::engine::Selectable | |
using | WeakRef = juce::WeakReference< Selectable > |
Static Public Member Functions inherited from tracktion::engine::Selectable | |
static void | initialise () |
static bool | isSelectableValid (const Selectable *) noexcept |
checks whether this object has been deleted. More... | |
Public Attributes inherited from tracktion::engine::OutputDevice | |
Engine & | engine |
Public Attributes inherited from tracktion::engine::Selectable | |
WeakRef::Master | masterReference |
Protected Attributes inherited from tracktion::engine::OutputDevice | |
bool | enabled = false |
A (virtual) audio output device.
There'll be multiple instances of these, representing mono or stereo pairs of output channels.
tracktion::engine::WaveOutputDevice::WaveOutputDevice | ( | Engine & | , |
const juce::String & | name, | ||
const std::vector< ChannelIndex > & | channels | ||
) |
|
override |
void tracktion::engine::WaveOutputDevice::resetToDefault | ( | ) |
|
overridevirtual |
Implements tracktion::engine::OutputDevice.
|
noexcept |
|
noexcept |
void tracktion::engine::WaveOutputDevice::reverseChannels | ( | bool | ) |
bool tracktion::engine::WaveOutputDevice::isReversed | ( | ) | const |
void tracktion::engine::WaveOutputDevice::setDithered | ( | bool | ) |
bool tracktion::engine::WaveOutputDevice::isDithered | ( | ) | const |
int tracktion::engine::WaveOutputDevice::getLeftChannel | ( | ) | const |
Returns the left channel index.
N.B. this doesn't take into account if the channels are reversed as the reversing will be applied during the rendering stage.
int tracktion::engine::WaveOutputDevice::getRightChannel | ( | ) | const |
Returns the right channel index.
N.B. this doesn't take into account if the channels are reversed as the reversing will be applied during the rendering stage.
bool tracktion::engine::WaveOutputDevice::isStereoPair | ( | ) | const |
Returns true if the output is a stereo pair.
I.e. has two channels.
void tracktion::engine::WaveOutputDevice::setStereoPair | ( | bool | ) |
WaveOutputDeviceInstance* tracktion::engine::WaveOutputDevice::createInstance | ( | EditPlaybackContext & | ) |
|
overrideprotectedvirtual |
Implements tracktion::engine::OutputDevice.
|
overrideprotectedvirtual |
Implements tracktion::engine::OutputDevice.