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]
impl<F: StandardFrame> Capture<F>
pub fn alto(&self) -> &Alto
[src]
pub fn alto(&self) -> &Alto
AltoInner struct from which this device was opened.
pub fn specifier(&self) -> Option<&CStr>
[src]
pub fn specifier(&self) -> Option<&CStr>
Specifier used to open this device.
pub fn as_raw(&self) -> *mut ALCdevice
[src]
pub fn as_raw(&self) -> *mut ALCdevice
Raw device handle as reported by OpenAL.
pub fn start(&mut self)
[src]
pub fn start(&mut self)
alcCaptureStart()
pub fn stop(&mut self)
[src]
pub fn stop(&mut self)
alcCaptureStop()
pub fn samples_len(&self) -> ALCint
[src]
pub fn samples_len(&self) -> ALCint
alcGetIntegerv(ALC_CAPTURE_SAMPLES)
pub fn capture_samples<R: AsBufferDataMut<F>>(
&mut self,
data: R
) -> AltoResult<usize>
[src]
pub fn capture_samples<R: AsBufferDataMut<F>>(
&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]
impl<F: StandardFrame> PartialEq for Capture<F>
fn eq(&self, other: &Capture<F>) -> bool
[src]
fn eq(&self, other: &Capture<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[src]
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> Eq for Capture<F>
impl<F: StandardFrame> Drop for Capture<F>
[src]
impl<F: StandardFrame> Drop for Capture<F>
impl<F: StandardFrame> Send for Capture<F>
[src]
impl<F: StandardFrame> Send for Capture<F>