diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2020-03-10 10:15:01 -0500 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2020-03-10 10:15:01 -0500 |
commit | 79cb6caee1513c6b70a1f2201b73c222af3ec007 (patch) | |
tree | 1463f16d4bfcc026ae1ce458663db4208faaea64 /src/main.rs | |
parent | f57de5cd6075c071fe89bb7af898072b0a8daab6 (diff) |
plots *a waveform*, not timed correctly
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |