Skip to content

Commit c2aec78

Browse files
committed
Adjust installer effects volume again
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 1848d4d commit c2aec78

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

MarathonRecomp/apu/embedded_player.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
#include <res/sounds/move.ogg.h>
1111
#include <res/sounds/main_deside.ogg.h>
1212

13-
// The raw sound files are kind of loud
14-
// so reduce their volume slightly in player
15-
const float EFFECTS_VOLUME = 0.5f;
16-
1713
enum class EmbeddedSound
1814
{
1915
WindowOpen,
@@ -85,7 +81,7 @@ static void PlayEmbeddedSound(EmbeddedSound s)
8581
data.chunk = Mix_LoadWAV_RW(SDL_RWFromConstMem(soundData, soundDataSize), 1);
8682
}
8783

88-
Mix_VolumeChunk(data.chunk, (Config::MasterVolume * Config::EffectsVolume * EFFECTS_VOLUME) * MIX_MAX_VOLUME);
84+
Mix_VolumeChunk(data.chunk, (Config::MasterVolume * Config::EffectsVolume * EmbeddedPlayer::EFFECTS_VOLUME) * MIX_MAX_VOLUME);
8985
Mix_PlayChannel(g_channelIndex % MIX_CHANNELS, data.chunk, 0);
9086
++g_channelIndex;
9187
}

MarathonRecomp/apu/embedded_player.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ struct EmbeddedPlayer
44
{
55
// Arbitrarily picked volume to match the mixing in the original game.
66
static constexpr float MUSIC_VOLUME = 0.25f;
7+
static constexpr float EFFECTS_VOLUME = 0.2f;
78

89
static inline bool s_isActive = false;
910

0 commit comments

Comments
 (0)