#2356 Muted audio channel can leak audio

This commit is contained in:
denny
2026-02-09 02:50:28 -05:00
parent c81e6cccfa
commit 185df1735a
2 changed files with 11 additions and 10 deletions

View File

@@ -170,7 +170,16 @@ public class AudioChannel implements Listener<IdentifierUpdateNotification>
{
if(mAudioBuffer.isFull())
{
return mAudioBuffer.get();
float[] audio = mAudioBuffer.get();
if(isMuted())
{
return new float[SAMPLES_PER_INTERVAL];
}
else
{
return audio;
}
}
if(mCurrentAudioSegment == null)