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:
parent
f174a633d7
commit
4b0f7e4d80
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user