Struct alto::Capture
[−]
[src]
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]
fn alto(&self) -> &Alto
[src]
AltoInner struct from which this device was opened.
fn specifier(&self) -> Option<&CStr>
[src]
Specifier used to open this device.
fn as_raw(&self) -> *mut ALCdevice
[src]
Raw device handle as reported by OpenAL.
fn start(&mut self)
[src]
alcCaptureStart()
fn stop(&mut self)
[src]
alcCaptureStop()
fn samples_len(&self) -> ALCint
[src]
alcGetIntegerv(ALC_CAPTURE_SAMPLES)
fn capture_samples<R: AsBufferDataMut<F>>(
&mut self,
data: R
) -> AltoResult<usize>
[src]
&mut self,
data: R
) -> AltoResult<usize>
alcCaptureSamples()
Returns the number of sample-frames captured to the slice.
Trait Implementations
impl<F: StandardFrame> PartialEq for Capture<F>
[src]
fn eq(&self, other: &Capture<F>) -> bool
[src]
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[src]
This method tests for !=
.