diff options
author | Graham Northup <grissess@nexusg.org> | 2017-09-27 00:50:06 -0400 |
---|---|---|
committer | Graham Northup <grissess@nexusg.org> | 2017-09-27 00:50:06 -0400 |
commit | 629d2fa754dcd4bbdbd1e84ea9f7598806abc840 (patch) | |
tree | afd9e5777fe418425657fe04324d66e64aead6bf /src/synth | |
parent | 150d71cae770598ade7e09419150f1218e961128 (diff) |
It makes networked noise! (Poorly, for now)
Diffstat (limited to 'src/synth')
-rw-r--r-- | src/synth/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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::<Sample>() * 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); } |