func NewReader(file riff.RIFFReader) (reader *Reader, err error) { reader = &Reader{riffReader: riff.NewReader(file)} format, audioFormat, err := reader.openAndParse() if err != nil { return } reader.Format = format reader.AudioFormat = audioFormat return }
func NewReader(r riff.RIFFReader) *Reader { riffReader := riff.NewReader(r) return &Reader{r: riffReader} }