Skip to main content

ARAPlaybackRegionProperties

Struct ARAPlaybackRegionProperties 

Source
#[repr(C, packed(1))]
pub struct ARAPlaybackRegionProperties { pub structSize: ARASize, pub transformationFlags: ARAPlaybackTransformationFlags, pub startInModificationTime: ARATimePosition, pub durationInModificationTime: ARATimeDuration, pub startInPlaybackTime: ARATimePosition, pub durationInPlaybackTime: ARATimeDuration, pub musicalContextRef: ARAMusicalContextRef, pub regionSequenceRef: ARARegionSequenceRef, pub name: ARAUtf8String, pub color: *const ARAColor, }
Expand description

! Playback region properties. ! Note that like all properties, a pointer to this struct is only valid for the duration of the ! call receiving the pointer - the data must be evaluated/copied inside the call, and the pointer ! must not be stored anywhere.

Fields§

§structSize: ARASize

! @see_Versioned_Structs

§transformationFlags: ARAPlaybackTransformationFlags

! Configuration of possible transformations upon playback, i.e. time-stretching etc. ! The host may only enable flags that are listed in ARAFactory::supportedPlaybackTransformationFlags.

§startInModificationTime: ARATimePosition

! #startInModificationTime and #durationInModificationTime define the ! audible audio modification time range. This section of the modification’s audio data will ! be mapped to the song playback time range defined below as configured by the #transformationFlags, ! including optional time stretching. See @ref sec_ManipulatingTheTiming for more information.

§durationInModificationTime: ARATimeDuration

! See #startInModificationTime. \br ! Plug-ins must deal with #durationInModificationTime being 0.0.

§startInPlaybackTime: ARATimePosition

! #startInPlaybackTime and #durationInPlaybackTime define the relationship between the ! audible modification time range and the song playback time in seconds as communicated ! via the companion API. ! Musical context content (such as ::kARAContentTypeTempoEntries) is also expressed ! in song playback time.

§durationInPlaybackTime: ARATimeDuration

! See #startInPlaybackTime. \br ! Plug-ins must deal with #durationInPlaybackTime being 0.0.

§musicalContextRef: ARAMusicalContextRef

! Musical context in which the playback region will be edited and rendered. ! Note that when rendering the playback region via any plug-in instance, the time information ! provided for this plug-in through the companion API must match this musical context. ! \deprecated ! No longer used since adding region sequences in ARA 2.0, which already define the musical ! context for all their respective regions. If structSize indicates that a sequence is used ! (i.e. when using ARA 2.0 or higher), this field must be ignored by plug-ins. Hosts are ! free to additionally set a valid musical context if desired for ARA 1 backwards compatibility, ! or leave the field uninitialized otherwise.

§regionSequenceRef: ARARegionSequenceRef

! Region sequence with which the playback region is associated in the host. ! Required when using ARA 2_0_Draft or newer.

§name: ARAUtf8String

! User-readable name of the playback region as displayed in the host. ! The plug-in must copy the name, the pointer may be only valid for the duration of the call. ! It may be NULL if the host cannot provide a name for the audio modification. ! In that case, the host should not make up some name (e.g. derived from the audio source), but ! rather let the plug-in do this if desired - this way it can distinguish between a proper name ! visible somewhere in the host and a dummy name implicitly derived from other state.

§color: *const ARAColor

! Color associated with the playback region in the host. ! The plug-in must copy the color, the pointer may be only valid for the duration of the call. ! It may be NULL if the host cannot provide a color for the playback region. ! In that case, the host should not make up some color (e.g. derived from the track color), but ! rather let the plug-in do this if desired - this way it can distinguish between a proper color ! visible somewhere in the host and a dummy color implicitly derived from other state.

Trait Implementations§

Source§

impl Clone for ARAPlaybackRegionProperties

Source§

fn clone(&self) -> ARAPlaybackRegionProperties

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ARAPlaybackRegionProperties

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for ARAPlaybackRegionProperties

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.