Skip to main content

ARAContentAccessControllerInterface

Struct ARAContentAccessControllerInterface 

Source
#[repr(C, packed(1))]
pub struct ARAContentAccessControllerInterface { pub structSize: ARASize, pub isMusicalContextContentAvailable: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, musicalContextHostRef: ARAMusicalContextHostRef, contentType: ARAContentType) -> ARABool>, pub getMusicalContextContentGrade: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, musicalContextHostRef: ARAMusicalContextHostRef, contentType: ARAContentType) -> ARAContentGrade>, pub createMusicalContextContentReader: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, musicalContextHostRef: ARAMusicalContextHostRef, contentType: ARAContentType, range: *const ARAContentTimeRange) -> ARAContentReaderHostRef>, pub isAudioSourceContentAvailable: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, audioSourceHostRef: ARAAudioSourceHostRef, contentType: ARAContentType) -> ARABool>, pub getAudioSourceContentGrade: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, audioSourceHostRef: ARAAudioSourceHostRef, contentType: ARAContentType) -> ARAContentGrade>, pub createAudioSourceContentReader: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, audioSourceHostRef: ARAAudioSourceHostRef, contentType: ARAContentType, range: *const ARAContentTimeRange) -> ARAContentReaderHostRef>, pub getContentReaderEventCount: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, contentReaderHostRef: ARAContentReaderHostRef) -> ARAInt32>, pub getContentReaderDataForEvent: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, contentReaderHostRef: ARAContentReaderHostRef, eventIndex: ARAInt32) -> *const c_void>, pub destroyContentReader: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, contentReaderHostRef: ARAContentReaderHostRef)>, }
Expand description

! Host interface: content access controller. ! As with all host interfaces, the function pointers in this struct must remain valid until ! all document controllers on the plug-in side that use it have been destroyed.

Fields§

§structSize: ARASize

! @see_Versioned_Structs_

§isMusicalContextContentAvailable: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, musicalContextHostRef: ARAMusicalContextHostRef, contentType: ARAContentType) -> ARABool>

! Query whether the given content type is currently available for the given musical context.

§getMusicalContextContentGrade: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, musicalContextHostRef: ARAMusicalContextHostRef, contentType: ARAContentType) -> ARAContentGrade>

! Query the current quality of the information provided for the given musical context and content type.

§createMusicalContextContentReader: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, musicalContextHostRef: ARAMusicalContextHostRef, contentType: ARAContentType, range: *const ARAContentTimeRange) -> ARAContentReaderHostRef>

! Create a content reader for the given musical context and content type. ! This should only be called after availability has been confirmed using isMusicalContextContentAvailable(), ! and is mainly used to communicate the song timeline to the plug-in. ! The time range may be NULL, which means that the entire musical context shall be read. ! If a time range is specified, all events that at least partially intersect with the range ! will be read.

§isAudioSourceContentAvailable: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, audioSourceHostRef: ARAAudioSourceHostRef, contentType: ARAContentType) -> ARABool>

! Query whether the given content type is currently available for the given audio source.

§getAudioSourceContentGrade: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, audioSourceHostRef: ARAAudioSourceHostRef, contentType: ARAContentType) -> ARAContentGrade>

! Query the current quality of the information provided for the given audio source and content type.

§createAudioSourceContentReader: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, audioSourceHostRef: ARAAudioSourceHostRef, contentType: ARAContentType, range: *const ARAContentTimeRange) -> ARAContentReaderHostRef>

! Create a content reader for the given audio source and content type. ! This should only be called after availability has been confirmed using isAudioSourceContentAvailable(). ! The host may be able to provide meta-information such as a known tempo or a known set of ! notes used in the material, which may enable the plug-in to speed up or even skip completely ! certain analysis passes (often depending on the content grade of the information). ! The time range may be NULL, which means that the entire audio source shall be read. ! If a time range is specified, all events that at least partially intersect with the range ! will be read.

§getContentReaderEventCount: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, contentReaderHostRef: ARAContentReaderHostRef) -> ARAInt32>

! Query how many events the given reader exposes.

§getContentReaderDataForEvent: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, contentReaderHostRef: ARAContentReaderHostRef, eventIndex: ARAInt32) -> *const c_void>

! Query data of the given event of the given reader. ! The returned pointer is owned by the host and must remain valid until either ! getContentReaderDataForEvent() is called again or the content reader is destroyed.

§destroyContentReader: Option<unsafe extern "C" fn(controllerHostRef: ARAContentAccessControllerHostRef, contentReaderHostRef: ARAContentReaderHostRef)>

! Destroy the given content reader.

Trait Implementations§

Source§

impl Clone for ARAContentAccessControllerInterface

Source§

fn clone(&self) -> ARAContentAccessControllerInterface

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 ARAContentAccessControllerInterface

Source§

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

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

impl Copy for ARAContentAccessControllerInterface

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.