[−][src]Struct wavy::Microphone
Record audio samples from a microphone.
Implementations
impl<C: Channel + Unpin + From<Ch16>> Microphone<C>
[src]
pub fn new() -> Option<Self>
[src]
Connect to a microphone. Unlike Speakers
, you may call this multiple
times to connect to multiple devices.
pub fn sample_rate(&self) -> u32
[src]
Get the microphone's sample rate.
pub async fn record<'_, '_>(&'_ mut self) -> impl Stream<Sample1<C>> + '_
[src]
Record audio from connected microphone. Returns new audio frames as an
Audio
buffer in the requested format.
Auto Trait Implementations
impl<C> RefUnwindSafe for Microphone<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> !Send for Microphone<C>
impl<C> !Sync for Microphone<C>
impl<C> Unpin for Microphone<C>
impl<C> UnwindSafe for Microphone<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,