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

pub struct SyncPtrStatus(_);

Read PCM status via a simple kernel syscall, bypassing alsa-lib.

If Status is not available on your architecture, this is the second best option.

Methods

impl SyncPtrStatus[src]

pub unsafe fn sync_ptr(
    fd: RawFd,
    hwsync: bool,
    appl_ptr: Option<Frames>,
    avail_min: Option<Frames>
) -> Result<Self>
[src]

Executes sync_ptr syscall.

Unsafe because

  • setting appl_ptr and avail_min might make alsa-lib confused
  • no check that the fd is really a PCM

pub fn hw_ptr(&self) -> Frames[src]

pub fn state(&self) -> State[src]

pub fn htstamp(&self) -> timespec[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]

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]