pub struct AudioOutput {
pub sample_rate: u32,
pub channels: u16,
/* private fields */
}Expand description
Opaque audio output handle. Keeps the cpal stream alive.
Fields§
§sample_rate: u32§channels: u16Implementations§
Source§impl AudioOutput
impl AudioOutput
Sourcepub fn try_new(rx: Receiver<AudioEvent>) -> Option<Self>
pub fn try_new(rx: Receiver<AudioEvent>) -> Option<Self>
Open the default output device and start synthesis. Returns None if no audio device is available.
Auto Trait Implementations§
impl Freeze for AudioOutput
impl !RefUnwindSafe for AudioOutput
impl !Send for AudioOutput
impl !Sync for AudioOutput
impl Unpin for AudioOutput
impl UnsafeUnpin for AudioOutput
impl !UnwindSafe for AudioOutput
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