TracktionEngine
|
Provides a thread-safe way to share a clip's levels with an audio engine without worrying about the Clip being deleted from underneath you. More...
#include <tracktion_Clip.h>
Public Member Functions | |
LiveClipLevel () noexcept=default | |
Creates an empty LiveClipLevel. | |
LiveClipLevel (std::shared_ptr< ClipLevel > l) noexcept | |
Creates a LiveClipLevel from a ClipLevel. | |
float | getGain () const noexcept |
Returns the clip's absolute gain. | |
float | getPan () const noexcept |
Returns the clip's pan from -1.0 to 1.0. | |
bool | isMute () const noexcept |
Returns true if the clip is muted. | |
float | getGainIncludingMute () const noexcept |
Returns the clip's gain if the clip is not muted. | |
void | getLeftAndRightGains (float &left, float &right) const noexcept |
Reutrns the left and right gains taking in to account mute and pan values. | |
Provides a thread-safe way to share a clip's levels with an audio engine without worrying about the Clip being deleted from underneath you.
|
defaultnoexcept |
Creates an empty LiveClipLevel.
|
noexcept |
Creates a LiveClipLevel from a ClipLevel.
|
noexcept |
Returns the clip's absolute gain.
References tracktion::engine::dbToGain().
Referenced by tracktion::engine::MidiNodeHelpers::createMessagesForTime(), and getGainIncludingMute().
|
noexcept |
Returns the clip's pan from -1.0 to 1.0.
Referenced by getLeftAndRightGains().
|
noexcept |
Returns true if the clip is muted.
Referenced by tracktion::engine::MidiNodeHelpers::createMessagesForTime(), and getGainIncludingMute().
|
noexcept |
Returns the clip's gain if the clip is not muted.
References getGain(), and isMute().
Referenced by getLeftAndRightGains().
|
noexcept |
Reutrns the left and right gains taking in to account mute and pan values.
References getGainIncludingMute(), and getPan().