[−][src]Function wav::read_wav
pub fn read_wav(reader: &mut dyn Read) -> Result<(Header, BitDepth)>
Reads in the given file and attempts to extract the audio data and header from it.
Errors
This function fails if:
- The file couldn't be opened or read.
- The file isn't a RIFF file.
- The wave data is malformed.
- The wave header specifies a compressed data format.