diff --git a/Program.cs b/Program.cs index 8c77416..92bfa2d 100644 --- a/Program.cs +++ b/Program.cs @@ -7,7 +7,7 @@ int counter = 0; -float volumeThreshold = 0.01f; +float volumeThreshold = 0.0001f; int resetTime = 5; //*100ms var fileLocation = string.Empty; string? partOfOutputDevice = string.Empty; @@ -51,7 +51,6 @@ soundOut.Initialize(music); - soundOut.Volume = volumeInPercents / 100; Console.WriteLine(); diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json new file mode 100644 index 0000000..476155c --- /dev/null +++ b/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "NoSilence": { + "commandName": "Project", + "commandLineArgs": "--volume 20 --file E:\\3am.mp3 --device SAMSUNG" + } + } +} \ No newline at end of file