aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2021-06-13 01:42:31 +0200
committerEskil Queseth <eskilq@kth.se>2021-06-14 17:15:04 +0200
commitc27074573f4025f4487f18557c57f8c14b8652da (patch)
tree134f5d1caa875be4729e5117491f29b873a073e1 /mumd/src/audio.rs
parent42275c61510f38318332a20c1ee41dbc17663b13 (diff)
downloadmum-c27074573f4025f4487f18557c57f8c14b8652da.tar.gz
rework audio decoding
Diffstat (limited to 'mumd/src/audio.rs')
-rw-r--r--mumd/src/audio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs
index 2e20583..beff9cd 100644
--- a/mumd/src/audio.rs
+++ b/mumd/src/audio.rs
@@ -235,7 +235,7 @@ impl AudioOutput {
pub fn play_effect(&self, effect: NotificationEvents) {
let samples = self.sounds.get(&effect).unwrap();
- self.client_streams.lock().unwrap().extend(None, samples);
+ self.client_streams.lock().unwrap().add_sound_effect(samples);
}
}