[−][src]Struct alsa::direct::pcm::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]
fd: RawFd,
hwsync: bool,
appl_ptr: Option<Frames>,
avail_min: Option<Frames>
) -> Result<Self>
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
impl Send for SyncPtrStatus
impl Sync for SyncPtrStatus
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,