Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 35cbc3d5 authored by Zhou Song's avatar Zhou Song Committed by Gerrit - the friendly Code Review server
Browse files

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
parent e0b0a36e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment