Skip to main content

ARAAudioSourceProperties

Struct ARAAudioSourceProperties 

Source
#[repr(C, packed(1))]
pub struct ARAAudioSourceProperties { pub structSize: ARASize, pub name: ARAUtf8String, pub persistentID: ARAPersistentID, pub sampleCount: ARASampleCount, pub sampleRate: ARASampleRate, pub channelCount: ARAChannelCount, pub merits64BitSamples: ARABool, pub channelArrangementDataType: ARAChannelArrangementDataType, pub channelArrangement: *const c_void, }
Expand description

! Audio source 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

§name: ARAUtf8String

! User-readable name of the audio source 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 source. ! In that case, the host should not make up some dummy name just to satisfy the API, 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.

§persistentID: ARAPersistentID

! ID used to re-connect model graph when archiving/unarchiving. ! This ID must be unique for all audio sources within the document. ! The plug-in must copy the persistentID, the pointer may be only valid for the duration of the call.

§sampleCount: ARASampleCount

! Total number of samples per channel of the contained audio material. ! May only be changed while access to the audio source is disabled, ! see ARADocumentControllerInterface::enableAudioSourceSamplesAccess().

§sampleRate: ARASampleRate

! Sample rate of the contained audio material. ! May only be changed while access to the audio source is disabled, ! see ARADocumentControllerInterface::enableAudioSourceSamplesAccess(). ! Note that the sample rate of the audio source may not match the sample rate(s) used in the ! companion plug-in instances that render playback regions based on this audio source - ! plug-ins must apply sample rate conversion as needed. ! However, if the sample rate is changed, plug-ins are not required to translate their model ! to the new sample rate, and may instead restart with a fresh analysis, causing all user ! edits applied at the previous sample rate to be lost.

§channelCount: ARAChannelCount

! Count of discrete channels of the contained audio material. ! May only be changed while access to the audio source is disabled, ! see ARADocumentControllerInterface::enableAudioSourceSamplesAccess(). ! As with sample rate changes, plug-ins may discard all edits and start with a fresh analysis ! if the channel count is changed.

§merits64BitSamples: ARABool

! Flag to indicating that the data is available in a resolution that cannot be represented ! in 32 bit float samples without losing quality. ! Depending on its internal algorithms, the plug-in may or may not base its decision to ! read either 32 or 64 bit samples on this flag, ! see ARAAudioAccessControllerInterface::createAudioReaderForSource().

§channelArrangementDataType: ARAChannelArrangementDataType

! Type information of the data the opaque #channelArrangement actually points to. ! Host shall use the data type associated with the companion API that was used to create ! the respective document controller.

§channelArrangement: *const c_void

! Spacial arrangement information: defines which channel carries the signal from which direction. ! The data type that this pointer references is defined by #channelArrangementDataType, ! see ARAChannelArrangementDataType. ! \br ! If #channelCount not larger than 2 (i.e. mono or stereo), this information may omitted by ! setting #channelArrangementDataType to kARAChannelArrangementUndefined and #channelArrangement ! to NULL. The behavior is then the same as in hosts that do not support surround for ARA: ! for stereo, channel 0 is the left and channel 1 the right speaker. ! \br ! To determine which channel arrangements are supported by the plug-in, the host will use the ! companion API and read the valid render input formats.

Trait Implementations§

Source§

impl Clone for ARAAudioSourceProperties

Source§

fn clone(&self) -> ARAAudioSourceProperties

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 ARAAudioSourceProperties

Source§

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

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

impl Copy for ARAAudioSourceProperties

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.