[][src]Struct alsa::direct::pcm::Control

pub struct 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

impl Debug for Control[src]

Auto Trait Implementations

impl Send for Control

impl Sync for Control

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]