Commit 245c59ce by andrewlewis Committed by Oliver Woodman

Factor out position tracking from DefaultAudioSink

DefaultAudioSink had a lot of code related to tracking the position of the
underlying AudioTrack, and working around issues with the position APIs.

Move this code to a separate class responsible for position tracking. This is in
preparation for improving the audio timestamp polling behavior.

This change is intended not to cause any behavior changes.

Issue: #3841

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189344743
parent 137d70b0
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
deprecated `DynamicConcatenatingMediaSource`. deprecated `DynamicConcatenatingMediaSource`.
* Allow clipping of child media sources where the period and window have a * Allow clipping of child media sources where the period and window have a
non-zero offset with `ClippingMediaSource`. non-zero offset with `ClippingMediaSource`.
* Audio: Factor out `AudioTrack` position tracking from `DefaultAudioSink`.
### 2.7.1 ### ### 2.7.1 ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment