Struct audio_streams::NoopBufferCommit
source · pub(crate) struct NoopBufferCommit {
pub(crate) which_buffer: bool,
}
Expand description
NoopStream data that is needed from the buffer complete callback.
Fields§
§which_buffer: bool
Trait Implementations§
source§impl AsyncBufferCommit for NoopBufferCommit
impl AsyncBufferCommit for NoopBufferCommit
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.source§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.source§impl BufferCommit for NoopBufferCommit
impl BufferCommit for NoopBufferCommit
source§fn commit(&mut self, _nwritten: usize)
fn commit(&mut self, _nwritten: usize)
write_playback_buffer
or read_capture_buffer
would trigger this automatically. nframes
indicates the number of audio frames that were read or written to the device.source§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 RefUnwindSafe for NoopBufferCommit
impl Send for NoopBufferCommit
impl Sync for NoopBufferCommit
impl Unpin for NoopBufferCommit
impl UnwindSafe for NoopBufferCommit
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