[][src]Function wav::read

pub fn read(reader: &mut dyn Read) -> Result<(Header, BitDepth)>

Reads in the given Read object and attempts to extract the audio data and header from it.

Errors

This function fails under the following circumstances:

  • Any error occurring from the reader parameter during reading.
  • The data isn't RIFF data.
  • The wave data is malformed.
  • The wave header specifies a compressed data format.