aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/map.rs b/src/map.rs
index fd5c7f1..f2cd770 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -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 => (),