diff options
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synth/mod.rs b/src/synth/mod.rs index 69523e2..60a7372 100644 --- a/src/synth/mod.rs +++ b/src/synth/mod.rs @@ -64,6 +64,10 @@ impl SampleBuffer { self.samples.len() } + pub fn iter(&self) -> slice::Iter<f32> { + self.samples.iter() + } + pub fn iter_mut(&mut self) -> slice::IterMut<f32> { self.samples.iter_mut() } |