private void QuitRoomAudioUpdate() { Engine.IAudio au = Engine.RareEngine.Instance().GetAudio(); if (au != null) { if (m_fSrcEffectVolume > 0f) { au.SetEffectVolume(m_fSrcEffectVolume); } au.SetMusicVolume(m_fSrcMusicVolume); } }
private void JoinRoomAudioUpdate() { Engine.IAudio au = Engine.RareEngine.Instance().GetAudio(); if (au != null) { m_fSrcMusicVolume = au.GetMusicVolume(); m_fSrcEffectVolume = au.GetEffectVolume(); au.SetMusicVolume(0); float f = m_fSrcEffectVolume * 0.7f; au.SetEffectVolume(f); } }