示例#1
0
 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);
     }
 }
示例#2
0
 public void CloseMicInRoom_Small()
 {
     IsOpenMicInRoom = false;
     CloseMic();
     //GVoiceManger.Instance.SoundMute(true);
     Engine.IAudio au = Engine.RareEngine.Instance().GetAudio();
     if (au != null)
     {
         m_fSrcEffectVolume = au.GetEffectVolume();
         float f = m_fSrcEffectVolume * 0.7f;
         au.SetEffectVolume(f);
     }
 }
示例#3
0
    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);
        }
    }
示例#4
0
    public void OpenMicInRoom_Small()
    {
        IsOpenMicInRoom = true;
        OpenMic();
        //GVoiceManger.Instance.SoundMute(false);

        Engine.IAudio au = Engine.RareEngine.Instance().GetAudio();
        if (au != null)
        {
            if (m_fSrcEffectVolume > 0f)
            {
                au.SetEffectVolume(m_fSrcEffectVolume);
            }
        }
    }