pub fn write<W>(header: Header, track: &BitDepth, writer: &mut W) -> Result<()>
👎Deprecated: This project is no longer maintained, use the
hound
crateExpand description
Writes the given wav data to the given writer
.
§Notes
Although track
is a borrowed value, its contents will be formatted into an owned Vec<u8>
so
that it can be written to the writer
through riff::ChunkContents::write
.
§Errors
This function fails under the following circumstances:
- Any error occurring from the
writer
parameter during writing. - The given
BitDepth
isBitDepth::Empty
.