audio: minor change
This commit is contained in:
parent
accdb6f51c
commit
cce4cccd26
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue