audio: wav: fix Stream (move position, forgot to do it previously)

This commit is contained in:
faiface 2017-07-14 02:10:12 +02:00
parent 35308e4ebf
commit 7624d11cfc
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ func (s *decoder) Stream(samples [][2]float64) (n int, ok bool) {
samples[j][1] = float64(int16(p[i+2])+int16(p[i+3])*(1<<8)) / (1<<15 - 1)
}
}
s.pos += int32(n)
return n / bytesPerFrame, true
}