Struct openal::Capture [] [src]

pub struct Capture<T: Sample> {
    // some fields omitted
}

Represents a capture device.

Methods

impl<T: Sample> Capture<T>
[src]

fn start(&mut self)

Starts recording.

fn stop(&mut self)

Stops recording.

fn len(&self) -> usize

Gets the number of samples available.

fn take(&mut self) -> Result<Vec<T>, Error>

Takes available samples out of the device.

Trait Implementations

impl<T: Sample> Send for Capture<T>
[src]

impl<T: Sample> Device for Capture<T>
[src]

fn as_ptr(&self) -> *const ALCdevice

Return a *const pointer for the device.

fn as_mut_ptr(&mut self) -> *mut ALCdevice

Return a *mut pointer for the device.

impl<T: Sample> Debug for Capture<T>
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl<T: Sample> Drop for Capture<T>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more