Struct riff_wave::WaveReader [] [src]

pub struct WaveReader<T> where
    T: Read + Seek
{ pub pcm_format: PcmFormat, // some fields omitted }

Helper struct that takes ownership of a reader and can be used to read data from a PCM wave file.

Fields

Represents the PCM format for this wave file.

Methods

impl<T> WaveReader<T> where
    T: Read + Seek
[src]

Returns a new wave reader for the given reader.

Reads a single sample as an unsigned 8-bit value.

Reads a single sample as a signed 16-bit value.

Reads a single sample as a signed 24-bit value. The value will be padded to fit in a 32-bit buffer.

Reads a single sample as a signed 32-bit value.

Consumes this reader, returning the underlying value.