[][src]Struct alto::Capture

pub struct Capture<F: StandardFrame> { /* fields omitted */ }

A capture device from which audio data can be sampled. This is tyically an audio input as reported by the operating system.

Methods

impl<F: StandardFrame> Capture<F>[src]

pub fn alto(&self) -> &Alto[src]

AltoInner struct from which this device was opened.

pub fn specifier(&self) -> Option<&CStr>[src]

Specifier used to open this device.

pub fn as_raw(&self) -> *mut ALCdevice[src]

Raw device handle as reported by OpenAL.

pub fn start(&mut self)[src]

alcCaptureStart()

pub fn stop(&mut self)[src]

alcCaptureStop()

pub fn samples_len(&self) -> ALCint[src]

alcGetIntegerv(ALC_CAPTURE_SAMPLES)

pub fn capture_samples<R: AsBufferDataMut<F>>(
    &mut self,
    data: R
) -> AltoResult<usize>
[src]

alcCaptureSamples() Returns the number of sample-frames captured to the slice.

Trait Implementations

impl<F: StandardFrame> Send for Capture<F>[src]

impl<F: StandardFrame> PartialEq<Capture<F>> for Capture<F>[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<F: StandardFrame> Eq for Capture<F>[src]

impl<F: StandardFrame> Drop for Capture<F>[src]

Auto Trait Implementations

impl<F> !Sync for Capture<F>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T