diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/errors.rs | 4 | ||||
| -rw-r--r-- | src/lib.rs | 4 | ||||
| -rw-r--r-- | src/map.rs | 26 | 
3 files changed, 17 insertions, 17 deletions
| diff --git a/src/errors.rs b/src/errors.rs index 3426cac..5ee9aa6 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,13 +1,13 @@  use chrono;  use magic_crypt; -use rodio; +// use rodio;  use xdg;  error_chain! {      foreign_links {          Io(::std::io::Error); -        Rodio(rodio::decoder::DecoderError); +        // Rodio(rodio::decoder::DecoderError);          Xdg(xdg::BaseDirectoriesError);          DateCrypt(DateCryptError); @@ -19,7 +19,7 @@ extern crate magic_crypt;  #[macro_use]  extern crate quick_error; -extern crate rodio; +// extern crate rodio;  #[macro_use]  extern crate serde_derive; @@ -37,7 +37,7 @@ mod ffi;  mod key_code;  mod map;  mod parser; -mod sounds; +// mod sounds;  mod trial;  use parser::{Action, HeadphoneButton, MapAction, MapGroup, MapKind}; @@ -4,7 +4,7 @@ use std::process::Command;  use {Action, HeadphoneButton, MapAction, MapKind};  use ffi::State; -use sounds; +// use sounds;  #[repr(C)]  pub enum PlayAudio { @@ -37,12 +37,12 @@ pub fn run_key_action<'a>(                      if &in_mode[..] == trigger {                          state.in_mode = None; -                        if play_audio.yes() { -                            match sounds::play_mode_deactivated() { -                                Ok(_) => (), -                                Err(e) => error!("{}", e), -                            } -                        } +                        // if play_audio.yes() { +                        //     match sounds::play_mode_deactivated() { +                        //         Ok(_) => (), +                        //         Err(e) => error!("{}", e), +                        //     } +                        // }                          return;                      } @@ -62,12 +62,12 @@ pub fn run_key_action<'a>(              if mode.is_some() {                  state.in_mode = Some(trigger.to_vec()); -                if play_audio.yes() { -                    match sounds::play_mode_activated() { -                        Ok(_) => (), -                        Err(e) => error!("{}", e), -                    } -                } +                // if play_audio.yes() { +                //     match sounds::play_mode_activated() { +                //         Ok(_) => (), +                //         Err(e) => error!("{}", e), +                //     } +                // }              }          },          None => (), | 
