hound v3.4.0 Release Notes
-
๐ Released 2018-04-07.
๐ฅ Breaking changes:
- None.
๐ Release highlights:
- Exposes
read_wave_header()
, to quickly determine whether a file could be a wav file. - โ Adds support for appending to an existing file. See
WavWriter::append()
for constructing a writer that appends to a file, andWavWriter::new_append()
for the generic case. - โ Adds
WavWriter::flush()
to flush the underlying writer and update the header. This can be used to minimize data loss when writing a large file. - โ Adds
WavWriter::duration()
,WavWriter::len()
, andWavWriter::spec()
to obtain the duration and number of samples written so far, and the spec of the file being written. The latter is useful when appending. - ๐ Hound now fails earlier when requesting to write an unsupported spec:
WavWriter::new()
will already returnError::Unsupported
. Previously this error was returned when writing a sample. - Hound now verifies that the data chunk has no trailing bytes.
WavWriter::finalize()
now performs a flush as its last operation, to be able to observe errors when using a buffered writer.- Ensures compatibility with Rust 1.4 through 1.25 stable.