pub trait BlockSource: Send + Sync {
// Required methods
fn fill(&self, block: &Block, words: &mut [i32]);
fn sent(&self, block: &Block, sent: bool);
fn left_out(&self, samples: u64);
}Expand description
A talker’s samples from another part of the program, one frame’s block
at a time, as 32-bit words (crate::aaf::write_words). Its calls
come on the talker’s thread as each frame is due, so they must not
block or wait on a lock held long.
Required Methods§
Sourcefn fill(&self, block: &Block, words: &mut [i32])
fn fill(&self, block: &Block, words: &mut [i32])
Fills words, block.samples frames of block.channels
interleaved, for the next block.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".