ruuda / hound

A wav encoding and decoding library in Rust
https://codeberg.org/ruuda/hound
Apache License 2.0
489 stars 65 forks source link

Allow mutable access to the inner stream #80

Open kartonrad opened 3 months ago

kartonrad commented 3 months ago

Why? Because you can then use something like a std::io::Cursor<Vec> and write to it on the fly.

The reader can be queried for the remaining samples, and thus we can make sure that we don't read past the end of the stream.