From 79cb6caee1513c6b70a1f2201b73c222af3ec007 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Tue, 10 Mar 2020 10:15:01 -0500 Subject: plots *a waveform*, not timed correctly --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d81d45c..8651f56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ -pub mod constants; pub mod audio; -pub mod vertex; +pub mod constants; pub mod n1ck; pub mod tom; +pub mod vertex; use alto::Source; use luminance::context::GraphicsContext; @@ -61,10 +61,10 @@ fn main() { .unwrap() .ignore_warnings(); - let mut stream = audio::init(); + let (mut stream, toms_samples) = audio::init(); stream.play(); - let mut tom = Tom::new(); + let mut tom = Tom::new(toms_samples); let mut n1ck = N1ck::new(); let viewports = gen_viewports(); -- cgit v1.2.3