diff options
author | Eric Laurent <elaurent@google.com> | 2013-10-16 15:12:32 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-10-16 15:12:32 -0700 |
commit | cc21e4f1e41dfa17e7e2bef995fcd22c45f6bcd0 (patch) | |
tree | a446f08a1adaf31ef5dddc491c620209176b67aa /include/private | |
parent | 014e7fa2e90827d911c37bb0ce4d2e10e14d0bb3 (diff) | |
download | frameworks_av-cc21e4f1e41dfa17e7e2bef995fcd22c45f6bcd0.zip frameworks_av-cc21e4f1e41dfa17e7e2bef995fcd22c45f6bcd0.tar.gz frameworks_av-cc21e4f1e41dfa17e7e2bef995fcd22c45f6bcd0.tar.bz2 |
AudioTrack: fix head position after restore
The head position transfered to the new track
by restoreTrack_l() must take into account the frames that
are dropped from the old track to avoid a non recoverable
offset in the playback head position returned to applications.
Bug: 11230062.
Change-Id: I51143a08b95e8f264ed709ae2054360315f2b8b1
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/media/AudioTrackShared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/private/media/AudioTrackShared.h b/include/private/media/AudioTrackShared.h index fe258ad..395f164 100644 --- a/include/private/media/AudioTrackShared.h +++ b/include/private/media/AudioTrackShared.h @@ -256,6 +256,8 @@ public: return mEpoch; } + size_t getFramesFilled(); + private: size_t mEpoch; }; |