tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tracktion::engine::LiveClipLevel Struct Reference

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.
 

Detailed Description

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.

Definition at line 27 of file tracktion_Clip.h.

Constructor & Destructor Documentation

◆ LiveClipLevel()

tracktion::engine::LiveClipLevel::LiveClipLevel ( std::shared_ptr< ClipLevel l)
noexcept

Creates a LiveClipLevel from a ClipLevel.

Definition at line 33 of file tracktion_Clip.h.

Member Function Documentation

◆ getGain()

float tracktion::engine::LiveClipLevel::getGain ( ) const
noexcept

Returns the clip's absolute gain.

Definition at line 37 of file tracktion_Clip.h.

◆ getGainIncludingMute()

float tracktion::engine::LiveClipLevel::getGainIncludingMute ( ) const
noexcept

Returns the clip's gain if the clip is not muted.

Definition at line 46 of file tracktion_Clip.h.

◆ getLeftAndRightGains()

void tracktion::engine::LiveClipLevel::getLeftAndRightGains ( float left,
float right 
) const
noexcept

Reutrns the left and right gains taking in to account mute and pan values.

Definition at line 49 of file tracktion_Clip.h.

◆ getPan()

float tracktion::engine::LiveClipLevel::getPan ( ) const
noexcept

Returns the clip's pan from -1.0 to 1.0.

Definition at line 40 of file tracktion_Clip.h.

◆ isMute()

bool tracktion::engine::LiveClipLevel::isMute ( ) const
noexcept

Returns true if the clip is muted.

Definition at line 43 of file tracktion_Clip.h.


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