#2040 Reset AMBE/IMBE audio codec after each call to prevent carryover of last audio frame from previous call. (#2048)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2024-10-27 08:34:27 -04:00
committed by GitHub
parent a15ff9040b
commit 37996d0477

View File

@@ -62,6 +62,18 @@ public abstract class JmbeAudioModule extends AbstractAudioModule implements Lis
loadConverter();
}
@Override
protected void closeAudioSegment()
{
super.closeAudioSegment();
//Reset the audio codec to clear any leftover frame data from the previous call.
if(mAudioCodec != null)
{
mAudioCodec.reset();
}
}
@Override
public void dispose()
{