summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-03-10 10:15:01 -0500
committerTom Barrett <tom@tombarrett.xyz>2020-03-10 10:15:01 -0500
commit79cb6caee1513c6b70a1f2201b73c222af3ec007 (patch)
tree1463f16d4bfcc026ae1ce458663db4208faaea64 /src/main.rs
parentf57de5cd6075c071fe89bb7af898072b0a8daab6 (diff)
plots *a waveform*, not timed correctly
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
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();