Struct audio_streams::shm_streams::NullShmStream
source · pub struct NullShmStream {
num_channels: usize,
frame_rate: u32,
buffer_size: usize,
frame_size: usize,
interval: Duration,
next_frame: Duration,
start_time: Instant,
}
Expand description
Class that implements ShmStream trait but does nothing with the samples
Fields§
§num_channels: usize
§frame_rate: u32
§buffer_size: usize
§frame_size: usize
§interval: Duration
§next_frame: Duration
§start_time: Instant
Implementations§
source§impl NullShmStream
impl NullShmStream
Trait Implementations§
source§impl BufferSet for NullShmStream
impl BufferSet for NullShmStream
source§impl ShmStream for NullShmStream
impl ShmStream for NullShmStream
source§fn frame_size(&self) -> usize
fn frame_size(&self) -> usize
Get the size of a frame of audio data for this stream.
source§fn num_channels(&self) -> usize
fn num_channels(&self) -> usize
Get the number of channels of audio data for this stream.
source§fn frame_rate(&self) -> u32
fn frame_rate(&self) -> u32
Get the frame rate of audio data for this stream.
source§fn wait_for_next_action_with_timeout(
&mut self,
timeout: Duration
) -> Result<Option<ServerRequest<'_>>, BoxError>
fn wait_for_next_action_with_timeout( &mut self, timeout: Duration ) -> Result<Option<ServerRequest<'_>>, BoxError>
Waits until the next server message indicating action is required. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NullShmStream
impl Send for NullShmStream
impl Sync for NullShmStream
impl Unpin for NullShmStream
impl UnwindSafe for NullShmStream
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