TracktionEngine
Public Member Functions | Protected Member Functions | List of all members
tracktion::engine::WaveOutputDevice Class Reference

A (virtual) audio output device. More...

Inheritance diagram for tracktion::engine::WaveOutputDevice:

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)
 
WaveOutputDeviceInstancecreateInstance (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
Engineengine
 
- Public Attributes inherited from tracktion::engine::Selectable
WeakRef::Master masterReference
 
- Protected Attributes inherited from tracktion::engine::OutputDevice
bool enabled = false
 

Detailed Description

A (virtual) audio output device.

There'll be multiple instances of these, representing mono or stereo pairs of output channels.

Constructor & Destructor Documentation

◆ WaveOutputDevice()

tracktion::engine::WaveOutputDevice::WaveOutputDevice ( Engine ,
const juce::String &  name,
const std::vector< ChannelIndex > &  channels 
)

◆ ~WaveOutputDevice()

tracktion::engine::WaveOutputDevice::~WaveOutputDevice ( )
override

Member Function Documentation

◆ resetToDefault()

void tracktion::engine::WaveOutputDevice::resetToDefault ( )

◆ setEnabled()

void tracktion::engine::WaveOutputDevice::setEnabled ( bool  )
overridevirtual

◆ getChannels()

const std::vector<ChannelIndex>& tracktion::engine::WaveOutputDevice::getChannels ( ) const
noexcept

◆ getChannelSet()

const juce::AudioChannelSet& tracktion::engine::WaveOutputDevice::getChannelSet ( ) const
noexcept

◆ reverseChannels()

void tracktion::engine::WaveOutputDevice::reverseChannels ( bool  )

◆ isReversed()

bool tracktion::engine::WaveOutputDevice::isReversed ( ) const

◆ setDithered()

void tracktion::engine::WaveOutputDevice::setDithered ( bool  )

◆ isDithered()

bool tracktion::engine::WaveOutputDevice::isDithered ( ) const

◆ getLeftChannel()

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.

◆ getRightChannel()

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.

◆ isStereoPair()

bool tracktion::engine::WaveOutputDevice::isStereoPair ( ) const

Returns true if the output is a stereo pair.

I.e. has two channels.

◆ setStereoPair()

void tracktion::engine::WaveOutputDevice::setStereoPair ( bool  )

◆ createInstance()

WaveOutputDeviceInstance* tracktion::engine::WaveOutputDevice::createInstance ( EditPlaybackContext )

◆ openDevice()

juce::String tracktion::engine::WaveOutputDevice::openDevice ( )
overrideprotectedvirtual

◆ closeDevice()

void tracktion::engine::WaveOutputDevice::closeDevice ( )
overrideprotectedvirtual

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