retry eveything

This commit is contained in:
2023-07-01 00:40:55 +03:00
parent c9f79574a5
commit 6926504339
39 changed files with 182 additions and 5508 deletions

28
mute.cs Normal file
View File

@@ -0,0 +1,28 @@
using System;
using System.Runtime.InteropServices;
using CoreAudioApi;
class Program
{
static void Main()
{
// Mute the computer
MuteComputer();
// Wait for user input to exit
Console.WriteLine("Press any key to exit...");
Console.ReadKey();
}
static void MuteComputer()
{
// Create an instance of the MMDeviceEnumerator
var enumerator = new MMDeviceEnumerator();
// Get the default audio render device (speaker)
var device = enumerator.GetDefaultAudioEndpoint(EDataFlow.eRender, ERole.eMultimedia);
// Mute the audio
device.AudioEndpointVolume.Mute = true;
}
}