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.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.