diff --git a/code/mission/missionmessage.cpp b/code/mission/missionmessage.cpp index 4805c79ea2b..95876c5eb5c 100644 --- a/code/mission/missionmessage.cpp +++ b/code/mission/missionmessage.cpp @@ -40,7 +40,6 @@ #include "sound/fsspeech.h" #include "species_defs/species_defs.h" #include "utils/Random.h" -#include "weapon/emp.h" bool Allow_generic_backup_messages = false; float Command_announces_enemy_arrival_chance = 0.25; @@ -2384,10 +2383,10 @@ void message_maybe_distort() if ( Message_wave_muted ) { if ( !was_muted ) - snd_set_volume(Playing_messages[i].wave, 0.0f); + snd_set_volume(Playing_messages[i].wave, 0.0f, true); } else { if ( was_muted ) - snd_set_volume(Playing_messages[i].wave, (Master_sound_volume * aav_voice_volume)); + snd_set_volume(Playing_messages[i].wave, (Master_voice_volume * aav_voice_volume), true); } } } diff --git a/code/sound/sound.cpp b/code/sound/sound.cpp index 6caea7fd675..1547abb3411 100644 --- a/code/sound/sound.cpp +++ b/code/sound/sound.cpp @@ -1073,7 +1073,7 @@ void snd_set_volume(sound_handle sig, float volume, bool is_voice) //looping sound volumes are updated in snd_do_frame if(!isLoopingSound) { if (is_voice) { - new_volume = volume * (Master_voice_volume * aav_effect_volume); + new_volume = volume * (Master_voice_volume * aav_voice_volume); } else { new_volume = volume * (Master_sound_volume * aav_effect_volume); }