struct FileStreamBufferCommit {
frame_size: usize,
offset: Arc<AtomicUsize>,
max_offset: usize,
}Fields§
§frame_size: usize§offset: Arc<AtomicUsize>§max_offset: usizeTrait Implementations§
Source§impl AsyncBufferCommit for FileStreamBufferCommit
impl AsyncBufferCommit for FileStreamBufferCommit
Source§fn commit<'life0, 'async_trait>(
&'life0 mut self,
nwritten: usize,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn commit<'life0, 'async_trait>(
&'life0 mut self,
nwritten: usize,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
async_write_playback_buffer or async_read_capture_buffer would trigger this
automatically. nframes indicates the number of audio frames that were read or written to
the device.§fn latency_bytes(&self) -> u32
fn latency_bytes(&self) -> u32
latency_bytes the current device latency.
For playback it means how many bytes need to be consumed
before the current playback buffer will be played.
For capture it means the latency in terms of bytes that the capture buffer was recorded.Auto Trait Implementations§
impl Freeze for FileStreamBufferCommit
impl RefUnwindSafe for FileStreamBufferCommit
impl Send for FileStreamBufferCommit
impl Sync for FileStreamBufferCommit
impl Unpin for FileStreamBufferCommit
impl UnwindSafe for FileStreamBufferCommit
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