Skip to main content

UnitTimeEffect

Struct UnitTimeEffect 

Source
pub struct UnitTimeEffect(/* private fields */);

Implementations§

Source§

impl TimeEffect

Source

pub fn retained(&self) -> R<Self>

Source§

impl TimeEffect

Unit that processes audio in non real-time

An TimeEffect represents an audio unit of type aufc. These effects do not process audio in real-time. The varispeed unit is an example of a time effect unit.

AVAudioUnitTimeEffect

Source

pub fn cls() -> &'static Class<Self>

Source

pub fn cls_ptr() -> *const c_void

Source

pub fn alloc() -> A<Self>

Source

pub fn bypass(&self) -> bool

Source

pub fn set_bypass(&mut self, value: bool)

Source

pub fn with_component_desc(description: ComponentDesc) -> R<Self>

Methods from Deref<Target = Unit>§

Source

pub fn retained(&self) -> R<Self>

Methods from Deref<Target = Node>§

Source

pub fn retained(&self) -> R<Self>

Source

pub fn reset(&self)

Source

pub fn input_format_for_bus_ar(&self, bus: AudioNodeBus) -> Rar<AudioFormat>

Source

pub fn input_format_for_bus(&self, bus: AudioNodeBus) -> R<AudioFormat>

Source

pub fn output_format_for_bus_ar(&self, bus: AudioNodeBus) -> Rar<AudioFormat>

Source

pub fn output_format_for_bus(&self, bus: AudioNodeBus) -> R<AudioFormat>

Source

pub fn name_for_input_bus_ar(&self, bus: AudioNodeBus) -> Option<Rar<String>>

Gets the name of the input bus you specify.

Source

pub fn name_for_input_bus(&self, bus: AudioNodeBus) -> Option<R<String>>

Gets the name of the input bus you specify.

Source

pub fn engine_ar(&self) -> Option<Rar<Engine>>

Source

pub fn engine(&self) -> Option<R<Engine>>

Source

pub fn number_of_inputs(&self) -> usize

The node’s number of input busses.

Source

pub fn number_of_outputs(&self) -> usize

The node’s number of output busses.

Source

pub fn last_render_time(&self) -> Option<AudioTime>

Obtain the time for which the node most recently rendered.

Will return None if the engine is not running or if the node is not connected to an input or output node.

Source

pub fn audio_unit_ar(&self) -> Rar<AudioUnit>

Source

pub fn audio_unit(&self) -> R<AudioUnit>

Source

pub fn latency(&self) -> TimeInterval

The processing latency of the node, in seconds.

This property reflects the delay between when an impulse in the audio stream arrives at the input vs. output of the node. This should reflect the delay due to signal processing (e.g. filters, FFT’s, etc.), not delay or reverberation which is being applied as an effect. A value of zero indicates either no latency or an unknown latency.

Source

pub fn output_presentation_latency(&self) -> TimeInterval

The maximum render pipeline latency downstream of the node, in seconds.

Source

pub unsafe fn install_tap_on_bus_block_throws( &mut self, bus: AudioNodeBus, buffer_size: AudioFrameCount, format: Option<&AudioFormat>, tap_block: &mut Block<fn(&AudioPcmBuf, &AudioTime), Esc>, )

NOTE: remove_tap_on_bus if you have already installed tap

Source

pub unsafe fn install_tap_on_bus_throws( &mut self, bus: AudioNodeBus, buffer_size: AudioFrameCount, format: Option<&AudioFormat>, tap_block: impl FnMut(&AudioPcmBuf, &AudioTime) + 'static, )

Source

pub fn install_tap_on_bus<'ear>( &mut self, bus: AudioNodeBus, buffer_size: AudioFrameCount, format: Option<&AudioFormat>, tap_block: impl FnMut(&AudioPcmBuf, &AudioTime) + 'static, ) -> ExResult<'ear>

Source

pub unsafe fn remove_tap_on_bus_throws(&mut self, bus: AudioNodeBus)

Source

pub fn remove_tap_on_bus<'ear>(&mut self, bus: AudioNodeBus) -> ExResult<'ear>

Methods from Deref<Target = Id>§

Source

pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>

Source

pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )

Source

pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>

Source

pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>

Source

pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )

Source

pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>

Source

pub fn as_type_ref(&self) -> &Type

Source

pub fn as_id_ref(&self) -> &Self

Source

pub fn is_equal(&self, other: &Self) -> bool

Source

pub fn hash(&self) -> UInteger

Source

pub fn as_ptr(&self) -> *const Self

Trait Implementations§

Source§

impl AsRef<Id> for TimeEffect

Source§

fn as_ref(&self) -> &Id

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Debug for TimeEffect

Source§

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

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

impl Deref for TimeEffect

Source§

type Target = Unit

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for TimeEffect

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Obj for TimeEffect

Source§

unsafe fn retain(id: &Self) -> R<Self>

Source§

unsafe fn release(id: &mut Self)

Source§

fn desc_ar(&self) -> Rar<String>

Source§

fn desc(&self) -> R<String>

Source§

fn debug_desc_ar(&self) -> Rar<String>

Source§

fn debug_desc(&self) -> R<String>

Source§

fn responds_to_sel(&self, sel: &Sel) -> bool

Source§

fn class(&self) -> &Class<Self>

Source§

fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>

Source§

fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>

Source§

fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn is_tagged_ptr(&self) -> bool

Source§

fn as_id_ref(&self) -> &Id

Source§

impl PartialEq for TimeEffect

Source§

fn eq(&self, other: &TimeEffect) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Retained<TimeEffect>> for TimeEffect

Source§

fn eq(&self, other: &R<TimeEffect>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TimeEffect

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Release for T
where T: Obj,

Source§

unsafe fn release(&mut self)

Source§

impl<T> Retain for T
where T: Obj,

Source§

fn retained(&self) -> Retained<T>

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.