audio: minor change

This commit is contained in:
faiface 2017-07-13 00:21:16 +02:00
parent accdb6f51c
commit cce4cccd26
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ func (t *take) Stream(samples [][2]float64) (n int, ok bool) {
if len(samples) < toStream { if len(samples) < toStream {
toStream = len(samples) toStream = len(samples)
} }
sn, sok := t.s.Stream(samples[:toStream]) n, ok = t.s.Stream(samples[:toStream])
t.currSample += sn t.currSample += n
return sn, sok return n, ok
} }
func (t *take) Err() error { func (t *take) Err() error {