aboutsummaryrefslogtreecommitdiff
path: root/src/desktop/audio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/audio.rs')
-rw-r--r--src/desktop/audio.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop/audio.rs b/src/desktop/audio.rs
index db15a4f..2438d01 100644
--- a/src/desktop/audio.rs
+++ b/src/desktop/audio.rs
@@ -18,7 +18,9 @@ impl<W: Wave + Send + 'static> Iterator for RodioWave<W>
fn next(&mut self) -> Option<Self::Item> {
self.1 += 1;
let left = self.1 % 2 == 0;
- self.0.next(left)
+ let result = self.0.next(left);
+
+ result
}
}