pub struct SyncPtrStatus(/* private fields */);
Expand description
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.
Implementations§
Source§impl SyncPtrStatus
impl SyncPtrStatus
Sourcepub unsafe fn sync_ptr(
fd: RawFd,
hwsync: bool,
appl_ptr: Option<Frames>,
avail_min: Option<Frames>,
) -> Result<Self>
pub unsafe fn sync_ptr( 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
pub fn state(&self) -> State
pub fn htstamp(&self) -> timespec
Auto Trait Implementations§
impl Freeze for SyncPtrStatus
impl RefUnwindSafe for SyncPtrStatus
impl Send for SyncPtrStatus
impl Sync for SyncPtrStatus
impl Unpin for SyncPtrStatus
impl UnwindSafe for SyncPtrStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more