|
TracktionEngine
|
#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 |
| ARADocument & | doc |
| AudioClipBase & | clip |
| EditItemID | trackID |
| PlaybackRegionWrapper::PlaybackRegionWrapper | ( | ARADocument & | d, |
| AudioClipBase & | audioClip, | ||
| const ARAFactory & | factory, | ||
| const AudioModificationWrapper & | audioModification | ||
| ) |
Creates a playback region covering the whole clip (non-looping case).
References clip, CRASH_TRACER, ARADocument::dci, ARADocument::dcRef, doc, ARADocument::edit, getPlaybackRegionProperties(), ARADocument::musicalContext, playbackRegionRef, and ARADocument::willCreatePlaybackRegionOnTrack().
| 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 | ( | ) |
| void PlaybackRegionWrapper::updateRange | ( | ) |
| 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().
| ARAPlaybackRegionRef PlaybackRegionWrapper::playbackRegionRef = nullptr |
Referenced by PlaybackRegionWrapper(), PlaybackRegionWrapper(), updateRange(), and ~PlaybackRegionWrapper().
| ARADocument& PlaybackRegionWrapper::doc |
| AudioClipBase& PlaybackRegionWrapper::clip |
Referenced by getPlaybackRegionProperties(), PlaybackRegionWrapper(), and PlaybackRegionWrapper().
| EditItemID PlaybackRegionWrapper::trackID |
Referenced by getPlaybackRegionProperties(), updateRange(), and ~PlaybackRegionWrapper().