pub struct AudioEngine { /* private fields */ }Expand description
The audio engine — spawns a cpal synthesis thread and accepts events.
If no audio device is available, try_new() returns None and all
emit() calls are silently dropped (the engine runs fine without audio).
Implementations§
Source§impl AudioEngine
impl AudioEngine
Auto Trait Implementations§
impl Freeze for AudioEngine
impl !RefUnwindSafe for AudioEngine
impl !Send for AudioEngine
impl !Sync for AudioEngine
impl Unpin for AudioEngine
impl UnsafeUnpin for AudioEngine
impl !UnwindSafe for AudioEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more