From 247f0818c1c1493b68206554608858ed9c2d113a Mon Sep 17 00:00:00 2001 From: Geno <4415544-telastrus@users.noreply.gitlab.com> Date: Sun, 8 Sep 2019 15:47:52 +0000 Subject: [PATCH] Footstep volume fix --- voxygen/src/audio/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voxygen/src/audio/mod.rs b/voxygen/src/audio/mod.rs index 931f71d9e5..3fee3119e1 100644 --- a/voxygen/src/audio/mod.rs +++ b/voxygen/src/audio/mod.rs @@ -93,6 +93,8 @@ impl AudioFrontend { let id = self.next_channel_id; self.next_channel_id += 1; + let volume = self.music_volume; + if let Some(_) = &self.audio_device { let calc_pos = ((pos - self.listener_pos) * FALLOFF).into_array(); @@ -103,6 +105,7 @@ impl AudioFrontend { if let Some(channel) = self.get_channel() { channel.set_id(id); + channel.set_volume(volume); channel.set_emitter_position(calc_pos); channel.set_left_ear_position(left_ear); channel.set_right_ear_position(right_ear);