Skip to main content

TalkbackAudio

Struct TalkbackAudio 

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

The audio side: make it the render function of a sink with TalkbackAudio::into_render.

Implementations§

Source§

impl TalkbackAudio

Source

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

Mix one block of interleaved output.

Source

pub fn into_render(self) -> RenderFn

The render function for a sink.

Auto Trait Implementations§

§

impl Forget for TalkbackAudio

§

impl Freeze for TalkbackAudio
where *const ArcInner<ArrayQueue<Arc<Speaker>>> is !null: Freeze, PhantomData<ArcInner<ArrayQueue<Arc<Speaker>>>>: Freeze, *const u8 is !null: Freeze, PhantomData<Arc<Speaker>>: Freeze, *const ArcInner<Atomic<bool>> is !null: Freeze, PhantomData<ArcInner<Atomic<bool>>>: Freeze,

§

impl Move for TalkbackAudio

§

impl RefUnwindSafe for TalkbackAudio

§

impl Send for TalkbackAudio
where Arc<ArrayQueue<Arc<Speaker>>>: Send, RawVecInner: Send, Arc<Speaker>: Send, Arc<Atomic<bool>>: Send,

§

impl Sync for TalkbackAudio
where Arc<ArrayQueue<Arc<Speaker>>>: Sync, RawVecInner: Sync, Arc<Speaker>: Sync, Arc<Atomic<bool>>: Sync,

§

impl Unpin for TalkbackAudio
where Arc<ArrayQueue<Arc<Speaker>>>: Unpin, *const u8 is !null: Unpin, Arc<Speaker>: Unpin, Arc<Atomic<bool>>: Unpin,

§

impl UnsafeUnpin for TalkbackAudio
where *const ArcInner<ArrayQueue<Arc<Speaker>>> is !null: UnsafeUnpin, PhantomData<ArcInner<ArrayQueue<Arc<Speaker>>>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<Arc<Speaker>>: UnsafeUnpin, *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,

§

impl UnwindSafe for TalkbackAudio
where Arc<ArrayQueue<Arc<Speaker>>>: UnwindSafe, RawVecInner: UnwindSafe, Arc<Speaker>: UnwindSafe, Arc<Atomic<bool>>: UnwindSafe,

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.