diff options
| author | Andy Hung <hunga@google.com> | 2015-06-03 23:43:36 -0700 | 
|---|---|---|
| committer | Andy Hung <hunga@google.com> | 2015-06-04 12:23:56 -0700 | 
| commit | c8e09c610fabc7390297ecb48e939acbdfe27325 (patch) | |
| tree | 38ceed23e3bbef10f3d54388926c5ea242a1d069 /include | |
| parent | 005e9d0300fc326a076ec17b7fa6dd4f51568f55 (diff) | |
| download | frameworks_av-c8e09c610fabc7390297ecb48e939acbdfe27325.zip frameworks_av-c8e09c610fabc7390297ecb48e939acbdfe27325.tar.gz frameworks_av-c8e09c610fabc7390297ecb48e939acbdfe27325.tar.bz2  | |
Improve AudioTrack offload timestamp startup glitch detector
New or existing glitch behavior for Nexus 5 offload audio:
we receive several 0 timestamps,
then we get a stale timestamp (very large),
then a few ms later we get a correct nonzero timestamp.
We attempt to hide the glitch because the retrograde timestamp
correction makes the glitch "sticky".
Bug: 21633313
Change-Id: I39153af718c151f9435e7d315651a811f72743da
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/AudioTrack.h | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index ec16933..c0bc516 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -894,6 +894,7 @@ protected:                                                      // only used for offloaded and direct tracks.      bool                    mPreviousTimestampValid;// true if mPreviousTimestamp is valid +    bool                    mTimestampStartupGlitchReported; // reduce log spam      bool                    mRetrogradeMotionReported; // reduce log spam      AudioTimestamp          mPreviousTimestamp;     // used to detect retrograde motion  | 
