From 629d2fa754dcd4bbdbd1e84ea9f7598806abc840 Mon Sep 17 00:00:00 2001 From: Graham Northup Date: Wed, 27 Sep 2017 00:50:06 -0400 Subject: It makes networked noise! (Poorly, for now) --- src/synth/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/synth') diff --git a/src/synth/mod.rs b/src/synth/mod.rs index e8d1758..69523e2 100644 --- a/src/synth/mod.rs +++ b/src/synth/mod.rs @@ -21,6 +21,7 @@ pub struct SampleBuffer { pub rate: Rate, } +#[derive(Debug,Clone)] pub struct Environment { pub sample_rate: f32, pub default_buffer_size: usize, @@ -143,7 +144,7 @@ impl SampleBuffer { mem::size_of::() * self.samples.len() } - pub fn bytes(&self, buf: &mut [u8]) { + pub fn write_bytes(&self, buf: &mut [u8]) { // FIXME: Depends on f32 instead of Sample alias ::byteorder::LittleEndian::write_f32_into(&self.samples, buf); } -- cgit v1.2.3-70-g09d2