From 4b0f7e4d806c79313e493a3c58818e995af25847 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Mon, 20 May 2024 08:02:56 -0500 Subject: [PATCH] fix sound effects playing at 100x intended volume (#965) yes, literally One Hundred Times louder than they're supposed to be --- src/aosfxplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aosfxplayer.cpp b/src/aosfxplayer.cpp index 96b5d45..0775eb9 100644 --- a/src/aosfxplayer.cpp +++ b/src/aosfxplayer.cpp @@ -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);