summaryrefslogtreecommitdiff
path: root/src/synth/noise.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/noise.rs')
-rw-r--r--src/synth/noise.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/synth/noise.rs b/src/synth/noise.rs
index 850b75b..765d17e 100644
--- a/src/synth/noise.rs
+++ b/src/synth/noise.rs
@@ -1,7 +1,10 @@
+use super::{
+ FactoryParameters, GenBox, GenFactoryError, Generator, GeneratorFactory, Parameters, Rate,
+ SampleBuffer,
+};
use std::mem;
-use super::*;
-use ::rand::{XorShiftRng, Rng, SeedableRng};
+use ::rand::{Rng, SeedableRng, XorShiftRng};
#[derive(Debug)]
pub struct Noise {
@@ -19,7 +22,9 @@ impl Generator for Noise {
&self.buf
}
- fn buffer(&self) -> &SampleBuffer { &self.buf }
+ fn buffer(&self) -> &SampleBuffer {
+ &self.buf
+ }
fn set_buffer(&mut self, buf: SampleBuffer) -> SampleBuffer {
mem::replace(&mut self.buf, buf)
}