Skip to main content

ComponentInstance

Struct ComponentInstance 

Source
pub struct ComponentInstance { /* private fields */ }

Implementations§

Source§

impl ComponentInstance

Source

pub unsafe fn from_raw(raw: AudioComponentInstance) -> Option<Self>

Source

pub fn as_raw(&self) -> AudioComponentInstance

Source

pub fn into_raw(self) -> AudioComponentInstance

Source

pub fn component(&self) -> Option<Component>

Source

pub fn can_do(&self, selector_id: i16) -> bool

Source§

impl ComponentInstance

Source

pub fn initialize(&self) -> Result<(), OSStatus>

Source

pub fn uninitialize(&self) -> Result<(), OSStatus>

Source

pub fn start_output_unit(&self) -> Result<(), OSStatus>

Source

pub fn stop_output_unit(&self) -> Result<(), OSStatus>

Source

pub fn property_info( &self, property_id: AudioUnitPropertyID, scope: AudioUnitScope, element: AudioUnitElement, ) -> Result<(u32, bool), OSStatus>

Source

pub fn get_property<T: Copy>( &self, property_id: AudioUnitPropertyID, scope: AudioUnitScope, element: AudioUnitElement, ) -> Result<T, OSStatus>

Source

pub fn get_property_bytes( &self, property_id: AudioUnitPropertyID, scope: AudioUnitScope, element: AudioUnitElement, ) -> Result<Vec<u8>, OSStatus>

Source

pub fn set_property<T: Copy>( &self, property_id: AudioUnitPropertyID, scope: AudioUnitScope, element: AudioUnitElement, value: &T, ) -> Result<(), OSStatus>

Source

pub fn set_property_bytes( &self, property_id: AudioUnitPropertyID, scope: AudioUnitScope, element: AudioUnitElement, bytes: &[u8], ) -> Result<(), OSStatus>

Source

pub fn clear_property( &self, property_id: AudioUnitPropertyID, scope: AudioUnitScope, element: AudioUnitElement, ) -> Result<(), OSStatus>

Source

pub fn get_parameter( &self, parameter_id: AudioUnitParameterID, scope: AudioUnitScope, element: AudioUnitElement, ) -> Result<AudioUnitParameterValue, OSStatus>

Source

pub fn set_parameter( &self, parameter_id: AudioUnitParameterID, scope: AudioUnitScope, element: AudioUnitElement, value: AudioUnitParameterValue, buffer_offset_in_frames: u32, ) -> Result<(), OSStatus>

Source

pub fn reset( &self, scope: AudioUnitScope, element: AudioUnitElement, ) -> Result<(), OSStatus>

Source

pub unsafe fn render( &self, action_flags: Option<&mut AudioUnitRenderActionFlags>, time_stamp: &AudioTimeStamp, output_bus_number: u32, number_frames: u32, io_data: &mut AudioBufferList, ) -> Result<(), OSStatus>

Trait Implementations§

Source§

impl Debug for ComponentInstance

Source§

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

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

impl Drop for ComponentInstance

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

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> AutoreleaseSafe for T
where T: ?Sized,

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> 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, 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.