audio/wav: Bug fix: header size was wrong

This commit is contained in:
Hajime Hoshi 2017-01-16 23:36:09 +09:00
parent abd0958566
commit 6437bb28da

View File

@ -132,7 +132,7 @@ func Decode(context *audio.Context, src audio.ReadSeekCloser) (*Stream, error) {
// Read chunks
dataSize := int64(0)
headerSize := int64(0)
headerSize := int64(len(buf))
sampleRateFrom := 0
sampleRateTo := 0
mono := false