Update legocachsound.cpp

This commit is contained in:
Christian Semmler 2024-12-14 20:28:06 -07:00 committed by GitHub
parent 249100d22b
commit e31d9f8e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -231,7 +231,7 @@ void LegoCacheSound::MuteSilence(MxBool p_muted)
m_muted = p_muted;
if (m_muted) {
ma_sound_set_volume(ma_volume_db_to_linear(-3000.0f / 100.0f));
ma_sound_set_volume(&m_cacheSound, ma_volume_db_to_linear(-3000.0f / 100.0f));
}
else {
MxS32 volume = m_volume * SoundManager()->GetVolume() / 100;