From 67f91b80f2dd5f5b809bd1bb0b908aab303dbcb3 Mon Sep 17 00:00:00 2001 From: Denny Sheirer Date: Sun, 13 Oct 2024 11:58:03 -0400 Subject: [PATCH] #2006 AudioOutput now requests a new source data line from the mixer when it detects that the line no longer accepts audio byte data. (#2011) Co-authored-by: Dennis Sheirer --- .../dsheirer/audio/playback/AudioOutput.java | 45 +++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/github/dsheirer/audio/playback/AudioOutput.java b/src/main/java/io/github/dsheirer/audio/playback/AudioOutput.java index 7772fee68..c3555e9f6 100644 --- a/src/main/java/io/github/dsheirer/audio/playback/AudioOutput.java +++ b/src/main/java/io/github/dsheirer/audio/playback/AudioOutput.java @@ -25,6 +25,7 @@ import io.github.dsheirer.eventbus.MyEventBus; import io.github.dsheirer.identifier.IdentifierCollection; import io.github.dsheirer.identifier.IdentifierUpdateNotification; +import io.github.dsheirer.log.LoggingSuppressor; import io.github.dsheirer.preference.PreferenceType; import io.github.dsheirer.preference.UserPreferences; import io.github.dsheirer.sample.Broadcaster; @@ -58,6 +59,7 @@ public abstract class AudioOutput implements LineListener, Listener { private final static Logger mLog = LoggerFactory.getLogger(AudioOutput.class); + private static final LoggingSuppressor LOGGING_SUPPRESSOR = new LoggingSuppressor(mLog); private int mBufferStartThreshold; private int mBufferStopThreshold; private Listener mIdentifierCollectionListener; @@ -83,6 +85,7 @@ public abstract class AudioOutput implements LineListener, Listener