not actually necessary
This commit is contained in:
parent
74f8a948e5
commit
aa72f1d4c7
|
@ -28,7 +28,6 @@ impl AudioCallback for MySdlAudio {
|
||||||
let buf_len = data.len();
|
let buf_len = data.len();
|
||||||
|
|
||||||
let mut filled = self.reader.pop_slice(data);
|
let mut filled = self.reader.pop_slice(data);
|
||||||
filled += self.reader.pop_slice(&mut data[filled..]);
|
|
||||||
if filled == 0 {
|
if filled == 0 {
|
||||||
data.fill(0);
|
data.fill(0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue