fn is_wav<R>(mut data: R) -> bool
where
    R: Read + Seek,
{
    let stream_pos = data.seek(SeekFrom::Current(0)).unwrap();
    let is_wav = WavReader::new(data.by_ref()).is_ok();
    data.seek(SeekFrom::Start(stream_pos)).unwrap();

    return is_wav;
}
/// Returns true if the stream contains Flac data, then resets it to where it was.
Returns true if the stream contains Flac data, then resets it to where it was.
Returns true if the stream contains Flac data then resets it to where it was .
fn is_wav<R>(mut data: R) -> bool
where
    R: Read + Seek,
{
    let stream_pos = data.seek(SeekFrom::Current(0)).unwrap();
    let is_wav = WavReader::new(data.by_ref()).is_ok();
    data.seek(SeekFrom::Start(stream_pos)).unwrap();
    return is_wav;
}
fn is_wav < R > ( mut data : R ) -> bool where R : Read + Seek , { let stream_pos = data . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) ; let is_wav = WavReader :: new ( data . by_ref ( ) ) . is_ok ( ) ; data . seek ( SeekFrom :: Start ( stream_pos ) ) . unwrap ( ) ; return is_wav ; }
Returns true if the stream contains Flac data, then resets it to where it was.
Returns true if the stream contains Flac data then resets it to where it was .
data
R
data
R