This commit is contained in:
DaforLynx 2022-07-07 16:10:51 -07:00
parent fc80a6278c
commit 0d1bf3efe6

View File

@ -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);