pub struct WavWriter { /* private fields */ }Expand description
A writer of one PCM track into a RIFF WAVE file.
Packets carry interleaved frames in the order wave_channel_layout gives, each starting
where the last ended.
Implementations§
Trait Implementations§
Source§impl ContainerWriter for WavWriter
impl ContainerWriter for WavWriter
Source§fn write(&mut self, packet: Packet) -> Result<(), MuxError>
fn write(&mut self, packet: Packet) -> Result<(), MuxError>
Writes
packet. Packets of each track arrive in decode order, and the writer interleaves
the tracks. A track may run ahead of the others by up to 10 s (Matroska) or 64 MiB of
packets (MP4) before the file’s layout degrades: the leading track is then written in one
run, and a reader seeking in it finds the other tracks far away. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WavWriter
impl !Sync for WavWriter
impl !UnwindSafe for WavWriter
impl Forget for WavWriter
impl Freeze for WavWriter
impl Move for WavWriter
impl Send for WavWriterwhere
BoxRaw<dyn Sink>: Send,
impl Unpin for WavWriter
impl UnsafeUnpin for WavWriter
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