Trait euphony_compiler::Writer
source · [−]pub trait Writer: Sync {
fn is_cached(&self, hash: &Hash) -> bool;
fn sink(&mut self, hash: &Hash) -> BoxProcessor;
fn group<I: Iterator<Item = Entry>>(
&mut self,
name: &str,
hash: &Hash,
entries: I
);
fn buffer<F: FnOnce(Box<dyn BufferReader>) -> Result<Vec<ConvertedBuffer>, E>, E>(
&self,
path: &str,
sample_rate: u64,
init: F
) -> Result<Vec<CachedBuffer>, E>;
}