mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
Implement/match LegoCacheSound::Create and LegoLoadCacheSoundPresenter::StreamingTickle (#986)
* Implement/match LegoCacheSound::Create * Naming * Fix naming * Fix parens
This commit is contained in:
committed by
GitHub
parent
1423eb56fc
commit
03ffb9c5de
@@ -299,8 +299,8 @@ void MxWavePresenter::SetVolume(MxS32 p_volume)
|
||||
m_volume = p_volume;
|
||||
if (m_dsBuffer != NULL) {
|
||||
MxS32 volume = p_volume * MxOmni::GetInstance()->GetSoundManager()->GetVolume() / 100;
|
||||
MxS32 otherVolume = MxOmni::GetInstance()->GetSoundManager()->GetAttenuation(volume);
|
||||
m_dsBuffer->SetVolume(otherVolume);
|
||||
MxS32 attenuation = MxOmni::GetInstance()->GetSoundManager()->GetAttenuation(volume);
|
||||
m_dsBuffer->SetVolume(attenuation);
|
||||
}
|
||||
|
||||
m_criticalSection.Leave();
|
||||
|
||||
Reference in New Issue
Block a user