aboutsummaryrefslogtreecommitdiff
path: root/src/aosfxplayer.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-05-20 08:02:56 -0500
committerGitHub <noreply@github.com>2024-05-20 08:02:56 -0500
commit4b0f7e4d806c79313e493a3c58818e995af25847 (patch)
tree387c53d56f8bc06fe7fe5f977988d387fbb46dec /src/aosfxplayer.cpp
parentf174a633d7ee08a772ee13b634172e4312533f82 (diff)
fix sound effects playing at 100x intended volume (#965)
yes, literally One Hundred Times louder than they're supposed to be
Diffstat (limited to 'src/aosfxplayer.cpp')
-rw-r--r--src/aosfxplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aosfxplayer.cpp b/src/aosfxplayer.cpp
index 96b5d454..0775eb99 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);