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

Holds the state of a Track and if its contents/plugins should be played or not. More...

Public Member Functions

 TrackMuteState (Track &, bool muteForInputsWhenRecording, bool processMidiWhenMuted)
 Creates a TrackMuteState for a Track. More...
 
 TrackMuteState (Edit &)
 Creates a TrackMuteState for an Edit. More...
 
void update ()
 Call once per block to update the mute status. More...
 
bool shouldTrackBeAudible () const
 Returns true if the track's mix bus should be audible. More...
 
bool shouldTrackContentsBeProcessed () const
 Returns true if the track's contents should be processed e.g. More...
 
bool shouldTrackMidiBeProcessed () const
 Returns true if the track's MIDI should be processed to avoid breaks in long notes. More...
 
bool wasJustMuted () const
 Returns true if the last block was audible but this one isn't. More...
 
bool wasJustUnMuted () const
 Returns true if the last block wasn't audible but this one is. More...
 
size_t getItemID () const
 Returns the ID for the relevant item, either the Track or Edit. More...
 

Detailed Description

Holds the state of a Track and if its contents/plugins should be played or not.

Constructor & Destructor Documentation

◆ TrackMuteState() [1/2]

tracktion::engine::TrackMuteState::TrackMuteState ( Track ,
bool  muteForInputsWhenRecording,
bool  processMidiWhenMuted 
)

Creates a TrackMuteState for a Track.

◆ TrackMuteState() [2/2]

tracktion::engine::TrackMuteState::TrackMuteState ( Edit )

Creates a TrackMuteState for an Edit.

This is used for freeze tracks and will be muted if any other track is soloed.

Member Function Documentation

◆ update()

void tracktion::engine::TrackMuteState::update ( )

Call once per block to update the mute status.

◆ shouldTrackBeAudible()

bool tracktion::engine::TrackMuteState::shouldTrackBeAudible ( ) const

Returns true if the track's mix bus should be audible.

◆ shouldTrackContentsBeProcessed()

bool tracktion::engine::TrackMuteState::shouldTrackContentsBeProcessed ( ) const

Returns true if the track's contents should be processed e.g.

clips and plugins.

◆ shouldTrackMidiBeProcessed()

bool tracktion::engine::TrackMuteState::shouldTrackMidiBeProcessed ( ) const

Returns true if the track's MIDI should be processed to avoid breaks in long notes.

◆ wasJustMuted()

bool tracktion::engine::TrackMuteState::wasJustMuted ( ) const

Returns true if the last block was audible but this one isn't.

◆ wasJustUnMuted()

bool tracktion::engine::TrackMuteState::wasJustUnMuted ( ) const

Returns true if the last block wasn't audible but this one is.

◆ getItemID()

size_t tracktion::engine::TrackMuteState::getItemID ( ) const

Returns the ID for the relevant item, either the Track or Edit.


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