Struct wavpack::WriteContext [−][src]
pub struct WriteContext { /* fields omitted */ }
Implementations
Pack the specified samples.
Requires: buffer.len() <= u32::MAX
Flush all accumulated samples into WavPack blocks.
This is normally called after all samples have been sent to
pack_samples()
, but can also be called to terminate a WavPack block
at a specific sample (in other words it is possible to continue after
this operation). This also must be called to dump non-audio blocks like
those holding metadata for MD5 sums or file trailers
Store computed MD5 sum in WavPack metadata.
Note that the user must compute the 16 byte sum; it is not done here.
It is also required that flush()
be called after this to make sure
the block containing the MD5 sum is actually written.