fix sound effects playing at 100x intended volume (#965)

yes, literally One Hundred Times louder than they're supposed to be
This commit is contained in:
in1tiate 2024-05-20 08:02:56 -05:00 committed by GitHub
parent f174a633d7
commit 4b0f7e4d80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,7 @@ void AOSfxPlayer::setMuted(bool toggle)
void AOSfxPlayer::updateInternalVolume() 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) for (int i = 0; i < STREAM_COUNT; ++i)
{ {
BASS_ChannelSetAttribute(m_stream[i], BASS_ATTRIB_VOL, volume); BASS_ChannelSetAttribute(m_stream[i], BASS_ATTRIB_VOL, volume);