Skip to content

Commit

Permalink
fix sound effects playing at 100x intended volume (#965)
Browse files Browse the repository at this point in the history
yes, literally One Hundred Times louder than they're supposed to be
  • Loading branch information
in1tiate authored May 20, 2024
1 parent f174a63 commit 4b0f7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aosfxplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void AOSfxPlayer::setMuted(bool toggle)

void AOSfxPlayer::updateInternalVolume()
{
float volume = m_muted ? 0.0f : m_volume;
float volume = m_muted ? 0.0f : (m_volume * 0.01);
for (int i = 0; i < STREAM_COUNT; ++i)
{
BASS_ChannelSetAttribute(m_stream[i], BASS_ATTRIB_VOL, volume);
Expand Down

0 comments on commit 4b0f7e4

Please sign in to comment.