|
tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation |
Represents the destination output device(s) for a track. More...
#include "tracktion_TrackOutput.h"
Public Member Functions | |
| TrackOutput (Track &) | |
| void | initialise () |
| void | flushStateToValueTree () |
| void | updateOutput () |
| called as a sanity-check after edit has created all the tracks | |
| bool | outputsToDevice (const juce::String &deviceName, bool compareDefaultDevices) const |
| if compareDefaultDevices is true, then this returns true if the device name is 'default ..' and the actual device is named, or vice-versa | |
| juce::String | getOutputName () const |
| description of where it's going. | |
| juce::String | getDescriptiveOutputName () const |
| includes the dest track's name, if relevant | |
| AudioTrack * | getDestinationTrack () const |
| if the track's being routed into another one, this returns it | |
| bool | outputsToDestTrack (AudioTrack &) const |
| True if this track's direct destination is the one given. | |
| bool | feedsInto (const Track *possibleDestTrack) const |
| true if any downstream tracks match this one | |
| OutputDevice * | getOutputDevice (bool traceThroughDestTracks) const |
| finds the output device. | |
| void | setOutputByName (const juce::String &name) |
| void | setOutputToTrack (AudioTrack *) |
| void | setOutputToDefaultDevice (bool isMidi) |
| bool | canPlayAudio () const |
| bool | canPlayMidi () const |
| (also true for virtual devices with midi synths) | |
| bool | injectLiveMidiMessage (const juce::MidiMessage &) |
| false if not possible | |
Static Public Member Functions | |
| static void | getPossibleOutputDeviceNames (const juce::Array< AudioTrack * > &tracks, juce::StringArray &s, juce::StringArray &a, juce::BigInteger &hasAudio, juce::BigInteger &hasMidi) |
| static void | getPossibleOutputNames (const juce::Array< AudioTrack * > &tracks, juce::StringArray &s, juce::StringArray &a, juce::BigInteger &hasAudio, juce::BigInteger &hasMidi) |
Public Attributes | |
| juce::ValueTree | state |
Represents the destination output device(s) for a track.
Definition at line 17 of file tracktion_TrackOutput.h.
| tracktion::engine::TrackOutput::TrackOutput | ( | Track & | t | ) |
Definition at line 14 of file tracktion_TrackOutput.cpp.
|
override |
Definition at line 25 of file tracktion_TrackOutput.cpp.
| bool tracktion::engine::TrackOutput::canPlayAudio | ( | ) | const |
Definition at line 195 of file tracktion_TrackOutput.cpp.
| bool tracktion::engine::TrackOutput::canPlayMidi | ( | ) | const |
(also true for virtual devices with midi synths)
Definition at line 207 of file tracktion_TrackOutput.cpp.
| bool tracktion::engine::TrackOutput::feedsInto | ( | const Track * | possibleDestTrack | ) | const |
true if any downstream tracks match this one
Definition at line 311 of file tracktion_TrackOutput.cpp.
| void tracktion::engine::TrackOutput::flushStateToValueTree | ( | ) |
Definition at line 39 of file tracktion_TrackOutput.cpp.
| juce::String tracktion::engine::TrackOutput::getDescriptiveOutputName | ( | ) | const |
includes the dest track's name, if relevant
Definition at line 168 of file tracktion_TrackOutput.cpp.
| AudioTrack * tracktion::engine::TrackOutput::getDestinationTrack | ( | ) | const |
if the track's being routed into another one, this returns it
Definition at line 131 of file tracktion_TrackOutput.cpp.
| OutputDevice * tracktion::engine::TrackOutput::getOutputDevice | ( | bool | traceThroughDestTracks | ) | const |
finds the output device.
If the track feeds into another track, this will optionally recurse into the dest track to find the device.
Definition at line 149 of file tracktion_TrackOutput.cpp.
| juce::String tracktion::engine::TrackOutput::getOutputName | ( | ) | const |
description of where it's going.
Definition at line 160 of file tracktion_TrackOutput.cpp.
|
static |
Definition at line 245 of file tracktion_TrackOutput.cpp.
|
static |
Definition at line 288 of file tracktion_TrackOutput.cpp.
| void tracktion::engine::TrackOutput::initialise | ( | ) |
Definition at line 31 of file tracktion_TrackOutput.cpp.
| bool tracktion::engine::TrackOutput::injectLiveMidiMessage | ( | const juce::MidiMessage & | message | ) |
false if not possible
Definition at line 319 of file tracktion_TrackOutput.cpp.
| bool tracktion::engine::TrackOutput::outputsToDestTrack | ( | AudioTrack & | t | ) | const |
True if this track's direct destination is the one given.
Definition at line 144 of file tracktion_TrackOutput.cpp.
| bool tracktion::engine::TrackOutput::outputsToDevice | ( | const juce::String & | deviceName, |
| bool | compareDefaultDevices | ||
| ) | const |
if compareDefaultDevices is true, then this returns true if the device name is 'default ..' and the actual device is named, or vice-versa
Definition at line 82 of file tracktion_TrackOutput.cpp.
| void tracktion::engine::TrackOutput::setOutputByName | ( | const juce::String & | name | ) |
Definition at line 187 of file tracktion_TrackOutput.cpp.
| void tracktion::engine::TrackOutput::setOutputToDefaultDevice | ( | bool | isMidi | ) |
Definition at line 225 of file tracktion_TrackOutput.cpp.
| void tracktion::engine::TrackOutput::setOutputToTrack | ( | AudioTrack * | track | ) |
Definition at line 219 of file tracktion_TrackOutput.cpp.
| void tracktion::engine::TrackOutput::updateOutput | ( | ) |
called as a sanity-check after edit has created all the tracks
Definition at line 48 of file tracktion_TrackOutput.cpp.
| juce::ValueTree tracktion::engine::TrackOutput::state |
Definition at line 82 of file tracktion_TrackOutput.h.