From 13fce77ed690f860891e4e156ffcab81b01cd976 Mon Sep 17 00:00:00 2001 From: BorderKeeper Date: Sun, 30 Jun 2024 11:15:30 +0200 Subject: [PATCH] Fixed insensitive threshold bar music should not play during video playback anymore --- Program.cs | 3 +-- Properties/launchSettings.json | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 Properties/launchSettings.json 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