pub struct AudioSource<'d, D: Driver<'d>> { /* private fields */ }Expand description
Implementation of the Audio Source interface
Implementations§
Source§impl<'d, D: Driver<'d>> AudioSource<'d, D>
impl<'d, D: Driver<'d>> AudioSource<'d, D>
Sourcepub fn new(
b: &mut Builder<'d, D>,
sample_rates: &'static [u32],
sample_width: SampleWidth,
fedback_refresh_period_ms: u8,
terminal_type: Option<TerminalType>,
) -> (AudioSourceEpIn<'d, D>, AudioSourceEpIn<'d, D>, AudioSourceControlHandler)
pub fn new( b: &mut Builder<'d, D>, sample_rates: &'static [u32], sample_width: SampleWidth, fedback_refresh_period_ms: u8, terminal_type: Option<TerminalType>, ) -> (AudioSourceEpIn<'d, D>, AudioSourceEpIn<'d, D>, AudioSourceControlHandler)
Create a new Audio Source interface with control and streaming endpoints
Auto Trait Implementations§
impl<'d, D> Freeze for AudioSource<'d, D>
impl<'d, D> RefUnwindSafe for AudioSource<'d, D>where
D: RefUnwindSafe,
impl<'d, D> Send for AudioSource<'d, D>where
D: Sync,
impl<'d, D> Sync for AudioSource<'d, D>where
D: Sync,
impl<'d, D> Unpin for AudioSource<'d, D>
impl<'d, D> UnwindSafe for AudioSource<'d, D>where
D: RefUnwindSafe,
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