Skip to content

Commit

Permalink
Fixed insensitive threshold bar music should not play during video pl…
Browse files Browse the repository at this point in the history
…ayback anymore
  • Loading branch information
BorderKeeper committed Jun 30, 2024
1 parent 6ad6260 commit 13fce77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -51,7 +51,6 @@

soundOut.Initialize(music);


soundOut.Volume = volumeInPercents / 100;

Console.WriteLine();
Expand Down
8 changes: 8 additions & 0 deletions Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"profiles": {
"NoSilence": {
"commandName": "Project",
"commandLineArgs": "--volume 20 --file E:\\3am.mp3 --device SAMSUNG"
}
}
}

0 comments on commit 13fce77

Please sign in to comment.