TracktionEngine
|
A (virtual) audio output device. More...
#include <tracktion_WaveOutputDevice.h>
Public Member Functions | |
WaveOutputDevice (Engine &, const WaveDeviceDescription &) | |
~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. | |
int | getRightChannel () const |
Returns the right channel index. | |
bool | isStereoPair () const |
Returns true if the output is a stereo pair. | |
void | setStereoPair (bool) |
WaveOutputDeviceInstance * | createInstance (EditPlaybackContext &) |
![]() | |
OutputDevice (Engine &, juce::String type, juce::String name, juce::String deviceID) | |
~OutputDevice () override | |
virtual juce::String | getName () const |
juce::String | getAlias () const |
the alias is the name shown in the draggable input device components | |
void | setAlias (const juce::String &alias) |
juce::String | getDeviceID () const |
juce::String | getSelectableDescription () override |
Subclasses must return a description of what they are. | |
bool | isEnabled () const |
virtual bool | isMidi () const |
![]() | |
Selectable () | |
virtual | ~Selectable () |
virtual void | selectionStatusChanged (bool isNowSelected) |
Can be overridden to tell this object that it has just been selected or deselected. | |
virtual void | changed () |
This should be called to send a change notification to any SelectableListeners that are registered with this object. | |
virtual void | selectableAboutToBeDeleted () |
Called just before the selectable is about to be deleted so any subclasses should still be valid at this point. | |
void | addListener (SelectableListener *) |
void | removeListener (SelectableListener *) |
void | addSelectableListener (SelectableListener *) |
void | removeSelectableListener (SelectableListener *) |
void | cancelAnyPendingUpdates () |
If changed() has been called, this will cancel any pending async change notificaions. | |
void | deselect () |
void | propertiesChanged () |
void | notifyListenersOfDeletion () |
WeakRef | getWeakRef () |
Protected Member Functions | |
juce::String | openDevice () override |
void | closeDevice () override |
Additional Inherited Members | |
![]() | |
using | WeakRef = juce::WeakReference< Selectable > |
![]() | |
static void | initialise () |
static bool | isSelectableValid (const Selectable *) noexcept |
checks whether this object has been deleted. | |
![]() | |
Engine & | engine |
![]() | |
WeakRef::Master | masterReference |
![]() | |
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 WaveDeviceDescription & | |||
) |
|
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.