audio: add support to return unreleased frames
The unreleased frames(frames already consumed but not yet released by the resampler) are not excluded during prepareTracks, so track can be in fake ready state when actually there're not enough frames available, then 0s can be inserted during audio mixing and glitches can be heard. Save the unreleased frames to audioflinger to make the track in NOT_READY state when not enough buffers available to avoid track to be processed this time. CRs-Fixed: 1058677 Change-Id: Ib54ca1726ff3994bb7289c3b95ca04fe2c483d08
Loading
Please register or sign in to comment