dont into_iter audio samples

This commit is contained in:
Alex Janka 2023-07-17 12:06:28 +10:00
parent 00aefee340
commit ed6ad62e22

View file

@ -87,10 +87,10 @@ impl Apu {
pub fn tick(&mut self, steps: usize, output: bool) { pub fn tick(&mut self, steps: usize, output: bool) {
if output { if output {
for s in izip!( for s in izip!(
self.channels.one.tick(steps).into_iter(), self.channels.one.tick(steps),
self.channels.two.tick(steps).into_iter(), self.channels.two.tick(steps),
self.channels.three.tick(steps).into_iter(), self.channels.three.tick(steps),
self.channels.four.tick(steps).into_iter() self.channels.four.tick(steps)
) )
.map(|(one, two, three, four)| DacSample { .map(|(one, two, three, four)| DacSample {
one, one,