[−][src]Struct alsa::direct::pcm::Control
Write PCM appl ptr directly, bypassing alsa-lib.
Provides direct access to appl ptr and avail min, without the overhead of alsa-lib or a syscall. Caveats that apply to Status applies to this struct too.
Methods
impl Control
[src]
pub fn new(p: &PCM) -> Result<Self>
[src]
pub fn from_fd(fd: RawFd) -> Result<Self>
[src]
pub fn appl_ptr(&self) -> Frames
[src]
Read number of frames application has read or written
This value wraps at "boundary" (a large value you can read from SwParams).
pub fn set_appl_ptr(&self, value: Frames)
[src]
Set number of frames application has read or written
When the kernel wakes up due to a period interrupt, this value will be checked by the kernel. An XRUN will happen in case the application has not read or written enough data.
pub fn avail_min(&self) -> Frames
[src]
Read minimum number of frames in buffer in order to wakeup process
pub fn set_avail_min(&self, value: Frames)
[src]
Write minimum number of frames in buffer in order to wakeup process
Trait Implementations
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,