[][src]Function wav::write_wav

pub fn write_wav(header: Header, track: BitDepth, p: &Path) -> Result<()>

Writes the given wav data to the given file.

Errors

This function fails if:

  • The file couldn't be opened or written to.
  • The path to the desired file destination couldn't be created.
  • The given BitDepth is BitDepth::Empty