aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state.rs
diff options
context:
space:
mode:
authorRubens Brandao <git@rubens.io>2021-04-05 18:50:58 +0200
committerRubens Brandao <git@rubens.io>2021-04-05 18:50:58 +0200
commit38270c4a2374c2ccc04597a28fb191af9d86b814 (patch)
tree831dd65d5a5bda3aba3633fbfe6d7af1449c38d9 /mumd/src/state.rs
parente431ecb6c5c8406bde6a54f40ee2f648cc0cec05 (diff)
downloadmum-38270c4a2374c2ccc04597a28fb191af9d86b814.tar.gz
Rename audio functions and basic indentation
Diffstat (limited to 'mumd/src/state.rs')
-rw-r--r--mumd/src/state.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs
index 84bb372..313a985 100644
--- a/mumd/src/state.rs
+++ b/mumd/src/state.rs
@@ -211,7 +211,7 @@ impl State {
now!(Ok(new_deaf.map(|b| CommandResponse::DeafenStatus { is_deafened: b })))
}
Command::InputVolumeSet(volume) => {
- self.audio_input.set_input_volume(volume);
+ self.audio_input.set_volume(volume);
now!(Ok(None))
}
Command::MuteOther(string, toggle) => {
@@ -305,7 +305,7 @@ impl State {
now!(Ok(new_mute.map(|b| CommandResponse::MuteStatus { is_muted: b })))
}
Command::OutputVolumeSet(volume) => {
- self.audio_output.set_output_volume(volume);
+ self.audio_output.set_volume(volume);
now!(Ok(None))
}
Command::Ping => {
@@ -585,10 +585,10 @@ impl State {
Err(e) => error!("Couldn't read config: {}", e),
}
if let Some(input_volume) = self.config.audio.input_volume {
- self.audio_input.set_input_volume(input_volume);
+ self.audio_input.set_volume(input_volume);
}
if let Some(output_volume) = self.config.audio.output_volume {
- self.audio_output.set_output_volume(output_volume);
+ self.audio_output.set_volume(output_volume);
}
if let Some(sound_effects) = &self.config.audio.sound_effects {
self.audio_output.load_sound_effects(sound_effects);