commit | 1ed46a2c7629040a88abcde9df561e215059171d | [log] [tgz] |
---|---|---|
author | Zhou Song <zhous@codeaurora.org> | Mon Aug 17 15:36:56 2020 +0800 |
committer | Andy Hung <hunga@google.com> | Mon Sep 28 15:32:03 2020 -0700 |
tree | e16bba9dd238408fddfb41b6a0ce020bec67f9d0 | |
parent | d75c6f06baa045c0f7278bf840550bb475037b5b [diff] |
audio: return accurate frame count when track is flushed To avoid track frames to be processed early before full filled, when track is flushed, framesReady should return accurate available frames to avoid putting track into ready state too early, otherwise silence can be inserted as buffer is insufficient which leads to audio glitch. Bug: 166610318 Test: see bug, ringtone playback no regression. Change-Id: I3b04999a29d85a91b54734514cfa93bc93f55c33