DescriptionDelay audio rendering until the clock reaches the first timestamp.
Since AudioClock no longer looks at timestamps, indeed they've been
completely removed from AudioRendererAlgorithm, ARI::Render() has no
way to correct for media where the video starts before the audio.
We don't want to add timestamp information back everywhere, so this
change just tracks the first decoded timestamp received and uses
that to delay rendering (by writing silence) until the appropriate
time is reached.
Since this may result in partial fills, AudioRendererAlgorithm has
been extended to include an offset into the buffer for writing.
BUG=435908
TEST=new unittest, sample media works.
Committed: https://crrev.com/8d4f5ec4f26857fd8081f88bad83e99be7c4dab4
Cr-Commit-Position: refs/heads/master@{#305727}
Patch Set 1 : Typo. #
Total comments: 17
Patch Set 2 : Comments. #Patch Set 3 : Fix cast. #Patch Set 4 : Fix state assumption. #
Messages
Total messages: 19 (7 generated)
|