Skip to main content

EngineAudio

Struct EngineAudio 

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

The audio half: owned by the device callback.

Implementations§

Source§

impl EngineAudio

Source

pub fn into_render(self) -> RenderFn

The device callback for this engine.

Source

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

Fills one device block. Allocation-free and lock-free.

Auto Trait Implementations§

§

impl Forget for EngineAudio

§

impl Freeze for EngineAudio
where *const ArcInner<Shared> is !null: Freeze, PhantomData<ArcInner<Shared>>: Freeze, *const ArcInner<Scene> is !null: Freeze, PhantomData<ArcInner<Scene>>: Freeze, *const u8 is !null: Freeze, PhantomData<Voice>: Freeze, PhantomData<f32>: Freeze,

§

impl Move for EngineAudio

§

impl RefUnwindSafe for EngineAudio

§

impl Send for EngineAudio
where Arc<Shared>: Send, Arc<Scene>: Send, RawVecInner: Send,

§

impl Sync for EngineAudio
where Arc<Shared>: Sync, Arc<Scene>: Sync, RawVecInner: Sync,

§

impl Unpin for EngineAudio
where Arc<Shared>: Unpin, Arc<Scene>: Unpin, *const u8 is !null: Unpin,

§

impl UnsafeUnpin for EngineAudio
where *const ArcInner<Shared> is !null: UnsafeUnpin, PhantomData<ArcInner<Shared>>: UnsafeUnpin, *const ArcInner<Scene> is !null: UnsafeUnpin, PhantomData<ArcInner<Scene>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<Voice>: UnsafeUnpin, PhantomData<f32>: UnsafeUnpin,

§

impl UnwindSafe for EngineAudio
where Arc<Shared>: UnwindSafe, Arc<Scene>: UnwindSafe, RawVecInner: 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.