Make media::AudioClock track frames written to compute time.
Instead of using AudioRendererAlgorithm's timestamp as the ending timestamp and counting "backwards", count "forwards" from a starting timestamp to compute the current media time. Doing so produces more accurate time calculations during periods where the playback rate is changing. last_endpoint_timestamp() is replaced by a new method that computes the amount of contiguous media data buffered by audio hardware. Using this value gives a more accurate maximum time value to use when doing linear interpolation. BUG=367343,370634 Review URL: https://codereview.chromium.org/436053002 Cr-Commit-Position: refs/heads/master@{#288445} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288445 0039d316-1c4b-4281-b951-d872f2087c98
Showing
This diff is collapsed.
Please register or sign in to comment