Skip to content

Commit

Permalink
Factor out position tracking from DefaultAudioSink
Browse files Browse the repository at this point in the history
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:/google/moe
MOE_MIGRATED_REVID=189344743
  • Loading branch information
andrewlewis authored and ojw28 committed Mar 27, 2018
1 parent 137d70b commit 245c59c
Show file tree
Hide file tree
Showing 3 changed files with 631 additions and 549 deletions.
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
deprecated `DynamicConcatenatingMediaSource`.
* Allow clipping of child media sources where the period and window have a
non-zero offset with `ClippingMediaSource`.
* Audio: Factor out `AudioTrack` position tracking from `DefaultAudioSink`.

### 2.7.1 ###

Expand Down
Loading

0 comments on commit 245c59c

Please sign in to comment.