Riff Wave Reader
Reads riff-wave compliant files. Get header info and access to the underlying reader positioned on the data block.
Using RiffWaveReader
use Error;
use File;
use BufReader;
use RiffWaveReader;
Print header info from CLI
cargo run -- print path/to/file.wav
------ Header ------
Size: 651016
Format: ExtendedWave
Channels: 2
Sample Rate: 44100
Byte Rate: 8096
Block Align: 376
Bits per Sample: 0
Extra Info: 34
----- Extended -----
Sample Info: 2048
Channel Mask: 0b0000000000000011
Sub Format: 62cee401faff19a14471cb58e923aabf
Remaining Data: [1, 0, 40, 46, 0, 0, 0, 0, 0, 0, 0, 0]
------- Fact -------
Fact Length: 12
Sample Length: 3541379
Remaining Data: [214, 9, 0, 0, 142, 10, 0, 0]
Chunk Ids: ["smpl"]
------- Data -------
Data Length: 650856
Padding Byte: 0