[−][src]Trait floaout::io::write::WriteBlock
This trait writes block.
Required methods
fn write_block(&mut self, _: T, _: B) -> Result<()>
This method writes format block.
Examples
use std::io; use std::fs::File; use floaout::format::wav::Wav; use floaout::io::write::WriteBlock; fn main() -> io::Result<()> { let mut writer = io::BufWriter::new(File::create("foo.wav")?); let wav = Wav::default(); // write Wav block writer.write_block(&wav, 1.0f32.into())?; Ok(()) }