fix: master volume not updating on playing sounds. (via smx)

This commit is contained in:
Colby Klein
2019-03-15 18:10:19 -07:00
parent 567f8363e8
commit 996b69cb01
5 changed files with 21 additions and 9 deletions
+1 -1
View File
@@ -583,7 +583,7 @@ void RageSound::ApplyParams()
m_pSource->SetProperty( "FadeInSeconds", m_Param.m_fFadeInSeconds );
m_pSource->SetProperty( "FadeSeconds", m_Param.m_fFadeOutSeconds );
float fVolume = m_Param.m_Volume * SOUNDMAN->GetMixVolume();
float fVolume = m_Param.m_Volume;
if( !m_Param.m_bIsCriticalSound )
fVolume *= m_Param.m_fAttractVolume;
m_pSource->SetProperty( "Volume", fVolume );