private void UnmuteLeague() { if (!league.IsConnected) { return; } if (!isMuted) { return; } Console.WriteLine("Unmuting League"); VolumeMixer.SetApplicationMute(league.UXPid, wasInitiallyMuted); isMuted = false; SetupMenuItems(); }
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(); }