Trait audio_streams::shm_streams::BufferSet
source · pub trait BufferSet {
// Required methods
fn callback(&mut self, offset: usize, frames: usize) -> Result<(), BoxError>;
fn ignore(&mut self) -> Result<(), BoxError>;
}
Expand description
BufferSet
is used as a callback mechanism for ServerRequest
objects.
It is meant to be implemented by the audio stream, allowing arbitrary code
to be run after a buffer offset and length is set.