Skip to main content

RouterAudio

Struct RouterAudio 

Source
pub struct RouterAudio { /* private fields */ }
Expand description

The audio side: make it a sink’s render function with RouterAudio::into_render, or call RouterAudio::render.

Implementations§

Source§

impl RouterAudio

Source

pub fn render(&mut self, out: &mut [f32])

Mixes one block of interleaved device output.

Source

pub fn into_render(self) -> RenderFn

The render function for a sink.

Auto Trait Implementations§

§

impl !RefUnwindSafe for RouterAudio

§

impl !Sync for RouterAudio

§

impl !UnwindSafe for RouterAudio

§

impl Forget for RouterAudio

§

impl Freeze for RouterAudio
where *const ArcInner<ArrayQueue<Msg>> is !null: Freeze, PhantomData<ArcInner<ArrayQueue<Msg>>>: Freeze, *const ArcInner<ArrayQueue<Garbage>> is !null: Freeze, PhantomData<ArcInner<ArrayQueue<Garbage>>>: Freeze, *const ArcInner<Shared> is !null: Freeze, PhantomData<ArcInner<Shared>>: Freeze, *const u8 is !null: Freeze, PhantomData<Body>: Freeze, PhantomData<Vec<f32>>: Freeze, PhantomData<f32>: Freeze, *const Plan is !null: Freeze, PhantomData<Plan>: Freeze,

§

impl Move for RouterAudio

§

impl Send for RouterAudio
where Arc<ArrayQueue<Msg>>: Send, Arc<ArrayQueue<Garbage>>: Send, Arc<Shared>: Send, RawVecInner: Send, BoxRaw<dyn FnMut(&mut [f32]) + Send>: Send, Arc<Ring>: Send, BoxRaw<Plan>: Send,

§

impl Unpin for RouterAudio
where Arc<ArrayQueue<Msg>>: Unpin, Arc<ArrayQueue<Garbage>>: Unpin, Arc<Shared>: Unpin, *const u8 is !null: Unpin, Box<dyn FnMut(&mut [f32]) + Send>: Unpin, Arc<Ring>: Unpin, Box<Plan>: Unpin,

§

impl UnsafeUnpin for RouterAudio
where *const ArcInner<ArrayQueue<Msg>> is !null: UnsafeUnpin, PhantomData<ArcInner<ArrayQueue<Msg>>>: UnsafeUnpin, *const ArcInner<ArrayQueue<Garbage>> is !null: UnsafeUnpin, PhantomData<ArcInner<ArrayQueue<Garbage>>>: UnsafeUnpin, *const ArcInner<Shared> is !null: UnsafeUnpin, PhantomData<ArcInner<Shared>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<Body>: UnsafeUnpin, PhantomData<Vec<f32>>: UnsafeUnpin, PhantomData<f32>: UnsafeUnpin, *const Plan is !null: UnsafeUnpin, PhantomData<Plan>: UnsafeUnpin,

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<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

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> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.