[−][src]Struct alto::Capture
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]
&mut self,
data: R
) -> AltoResult<usize>
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]
fn eq(&self, other: &Capture<F>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<F: StandardFrame> Eq for Capture<F>
[src]
impl<F: StandardFrame> Drop for Capture<F>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,