Struct alto::CaptureDevice
[−]
[src]
pub struct CaptureDevice<'a, 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<'a, F: StandardFrame> CaptureDevice<'a, F>
[src]
fn alto(&self) -> &Alto
Alto struct from which this device was opened.
fn specifier(&self) -> &CStr
Specifier used to open this device.
fn as_raw(&self) -> *mut ALCdevice
Raw device handle as reported by OpenAL.
fn start(&mut self) -> AltoResult<()>
alcCaptureStart()
fn stop(&mut self) -> AltoResult<()>
alcCaptureStop()
fn samples_len(&self) -> AltoResult<ALCint>
alcGetIntegerv(ALC_CAPTURE_SAMPLES)
fn capture_samples<R: AsBufferDataMut<F>>(&mut self, data: R) -> AltoResult<()>
alcCaptureSamples()
Trait Implementations
impl<'a, F: StandardFrame> PartialEq for CaptureDevice<'a, F>
[src]
fn eq(&self, other: &CaptureDevice<'a, F>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.