Move AudioTrack initialization into handleBuffer.
Move initialization code from the audio renderers into handleBuffer. The audio session id and tunneling enabled state can be altered using new setters. This change is not intended to change the behavior of the audio renderers. Before this change, the AudioTrack would always be reinitialized by the renderers before calling handleBuffer. Add a protected onAudioTrackUnderrun method for custom renderers that want to implement custom handling of underruns. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144067149
Showing
with
80 additions
and
72 deletions
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment