Skip to content

Commit

Permalink
#2032 Audio output suppresses logging after 5 times when app can't ge…
Browse files Browse the repository at this point in the history
…t gain or mute controls for current audio output. (#2033)

Co-authored-by: Dennis Sheirer <[email protected]>
  • Loading branch information
DSheirer and Dennis Sheirer authored Oct 18, 2024
1 parent bcfb270 commit 71bc27e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/io/github/dsheirer/audio/playback/AudioOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ public AudioOutput(Mixer mixer, MixerChannel mixerChannel, AudioFormat audioForm
}
catch(IllegalArgumentException iae)
{
mLog.warn("Couldn't obtain MASTER GAIN control for stereo line [" +
mixer.getMixerInfo().getName() + " | " + getChannelName() + "]");
LOGGING_SUPPRESSOR.error("no gain control", 5, "Couldn't obtain " +
"MASTER GAIN control for stereo line [" + mixer.getMixerInfo().getName() + " | " +
getChannelName() + "]");
}

try
Expand All @@ -151,8 +152,9 @@ public AudioOutput(Mixer mixer, MixerChannel mixerChannel, AudioFormat audioForm
}
catch(IllegalArgumentException iae)
{
mLog.warn("Couldn't obtain MUTE control for stereo line [" +
mixer.getMixerInfo().getName() + " | " + getChannelName() + "]");
LOGGING_SUPPRESSOR.error("no mute control", 5, "Couldn't obtain " +
"MUTE control for stereo line [" + mixer.getMixerInfo().getName() + " | " +
getChannelName() + "]");
}

//Run the queue processor task every 100 milliseconds or 10 times a second
Expand Down

0 comments on commit 71bc27e

Please sign in to comment.