Skip to content
Snippets Groups Projects
Commit 7624d11c authored by faiface's avatar faiface
Browse files

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

parent 35308e4e
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment