audio: wav: fix Stream (move position, forgot to do it previously)
This commit is contained in:
parent
35308e4ebf
commit
7624d11cfc
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue