mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fmt
This commit is contained in:
parent
fc80a6278c
commit
0d1bf3efe6
@ -308,12 +308,7 @@ impl AudioFrontend {
|
||||
}
|
||||
|
||||
/// Plays a file at a given volume in the channel with a given tag
|
||||
fn play_ambient(
|
||||
&mut self,
|
||||
channel_tag: AmbientChannelTag,
|
||||
sound: &str,
|
||||
volume: f32,
|
||||
) {
|
||||
fn play_ambient(&mut self, channel_tag: AmbientChannelTag, sound: &str, volume: f32) {
|
||||
if self.audio_stream.is_some() {
|
||||
if let Some(channel) = self.get_ambient_channel(channel_tag) {
|
||||
channel.set_volume(volume);
|
||||
|
Loading…
Reference in New Issue
Block a user