TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
PlaybackRegionWrapper Class Reference

#include <tracktion_ARAWrapperInterfaces.h>

Public Member Functions

 PlaybackRegionWrapper (ARADocument &d, AudioClipBase &audioClip, const ARAFactory &factory, const AudioModificationWrapper &audioModification)
 Creates a playback region covering the whole clip (non-looping case).
 
 PlaybackRegionWrapper (ARADocument &d, AudioClipBase &audioClip, const ARAFactory &factory, const AudioModificationWrapper &audioModification, int loopIterationIndex)
 Creates a playback region for one loop iteration of a looping clip.
 
 ~PlaybackRegionWrapper ()
 
void updateRange ()
 
SizedStruct< ARA_STRUCT_MEMBER(ARAPlaybackRegionProperties, color)> getPlaybackRegionProperties ()
 NB: This is where time-stretching is setup.
 

Public Attributes

ARAPlaybackRegionRef playbackRegionRef = nullptr
 
ARADocumentdoc
 
AudioClipBase & clip
 
EditItemID trackID
 

Constructor & Destructor Documentation

◆ PlaybackRegionWrapper() [1/2]

PlaybackRegionWrapper::PlaybackRegionWrapper ( ARADocument d,
AudioClipBase &  audioClip,
const ARAFactory &  factory,
const AudioModificationWrapper audioModification 
)

◆ PlaybackRegionWrapper() [2/2]

PlaybackRegionWrapper::PlaybackRegionWrapper ( ARADocument d,
AudioClipBase &  audioClip,
const ARAFactory &  factory,
const AudioModificationWrapper audioModification,
int  loopIterationIndex 
)

Creates a playback region for one loop iteration of a looping clip.

The time ranges are recomputed from the current clip state whenever the properties are requested, so they stay correct as the clip is moved or resized.

References clip, CRASH_TRACER, ARADocument::dci, ARADocument::dcRef, doc, ARADocument::edit, getPlaybackRegionProperties(), ARADocument::musicalContext, playbackRegionRef, and ARADocument::willCreatePlaybackRegionOnTrack().

◆ ~PlaybackRegionWrapper()

PlaybackRegionWrapper::~PlaybackRegionWrapper ( )

Member Function Documentation

◆ updateRange()

void PlaybackRegionWrapper::updateRange ( )

◆ getPlaybackRegionProperties()

SizedStruct< ARA_STRUCT_MEMBER(ARAPlaybackRegionProperties, color)> PlaybackRegionWrapper::getPlaybackRegionProperties ( )

NB: This is where time-stretching is setup.

References clip, doc, ARADocument::musicalContext, ARADocument::regionSequences, and trackID.

Referenced by PlaybackRegionWrapper(), PlaybackRegionWrapper(), and updateRange().

Member Data Documentation

◆ playbackRegionRef

ARAPlaybackRegionRef PlaybackRegionWrapper::playbackRegionRef = nullptr

◆ doc

ARADocument& PlaybackRegionWrapper::doc

◆ clip

AudioClipBase& PlaybackRegionWrapper::clip

◆ trackID

EditItemID PlaybackRegionWrapper::trackID

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