diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 10:42:31 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-03 10:42:31 +0100 |
| commit | 5c1c1f18b0e2cebaae277c15c66c8dcc7b209ecd (patch) | |
| tree | af69e65ea71854fe4b2cf2096b59a8812ddb4cd0 /mumd/src/state.rs | |
| parent | be7748be2f1e9d1e88ebd093da9eec16d1ad4049 (diff) | |
| download | mum-5c1c1f18b0e2cebaae277c15c66c8dcc7b209ecd.tar.gz | |
load sound effects by file name
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index d1f64a9..47aef66 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -573,6 +573,11 @@ impl State { if let Some(output_volume) = self.config.audio.output_volume { self.audio.set_output_volume(output_volume); } + if let Some(sound_effects) = &self.config.audio.sound_effects { + if let Err(e) = self.audio.load_sound_effects(sound_effects) { + warn!("Error loading sound effects: {:?}", e); + } + } } pub fn initialized(&self) { |
