aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-10-28 17:51:39 +0100
committerTeddy Wing2018-10-28 17:58:22 +0100
commiteb261f29d0ae15c2f941c2d84972bd321bf764ac (patch)
tree49b4db718f13d0d901b1485b41329197e80300c4 /src/lib.rs
parent641d94c357b23ad23ad8b67228071a12e619bded (diff)
downloaddome-key-map-eb261f29d0ae15c2f941c2d84972bd321bf764ac.tar.bz2
Test of playing an audio file
Success! Using the 'rodio' crate to play an audio file. Include the audio file in the binary using `include_bytes!`. This makes it so we get a single self-contained binary. Struggled a bit with getting the reader/array to `Seek`, but finally figured out `Cursor` and got it working. Cool.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 20f4fb6..f685dfe 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,7 @@ extern crate magic_crypt;
#[macro_use]
extern crate quick_error;
+extern crate rodio;
#[macro_use]
extern crate serde_derive;
@@ -36,6 +37,7 @@ mod ffi;
mod key_code;
mod map;
mod parser;
+mod sounds;
mod trial;
use parser::{Action, HeadphoneButton, MapAction, MapGroup, MapKind};