示例#1
0
        private void UnmuteLeague()
        {
            if (!league.IsConnected)
            {
                return;
            }
            if (!isMuted)
            {
                return;
            }

            Console.WriteLine("Unmuting League");

            VolumeMixer.SetApplicationMute(league.UXPid, wasInitiallyMuted);
            isMuted = false;

            SetupMenuItems();
        }
示例#2
0
        private void MuteLeague()
        {
            if (!league.IsConnected)
            {
                return;
            }
            if (isMuted)
            {
                return;
            }

            Console.WriteLine("Muting League");

            wasInitiallyMuted = VolumeMixer.GetApplicationMute(league.UXPid).Value;
            VolumeMixer.SetApplicationMute(league.UXPid, true);
            isMuted = true;

            SetupMenuItems();
        }