diff options
| author | Teddy Wing | 2018-10-28 17:51:39 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-10-28 17:58:22 +0100 |
| commit | eb261f29d0ae15c2f941c2d84972bd321bf764ac (patch) | |
| tree | 49b4db718f13d0d901b1485b41329197e80300c4 /src/lib.rs | |
| parent | 641d94c357b23ad23ad8b67228071a12e619bded (diff) | |
| download | dome-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.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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}; |
