Beispiel #1
0
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
}
Beispiel #2
0
func NewReader(r riff.RIFFReader) *Reader {
	riffReader := riff.NewReader(r)
	return &Reader{r: riffReader}
}