mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Footstep volume fix
This commit is contained in:
parent
8b654df81e
commit
247f0818c1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user