mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
#2356 Muted audio channel can leak audio
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user