Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 518613002: Have AudioRendererImpl advance time until it's told to stop. (Closed)

Created:
6 years, 3 months ago by scherkus (not reviewing)
Modified:
6 years, 3 months ago
Reviewers:
xhwang, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Have AudioRendererImpl advance time until it's told to stop. This removes the hacky fall-back-to-interpolated-time code when audio ends before video. Considering we're still getting audio render callbacks during this time, we can simply account for how much silence we've written to compute the media time. More importantly, this brings AudioRendererImpl's TimeSource implementation in line with how WallClockTimeSource operates and gets us one step closer to removing TimeDeltaInterpolator entirely. BUG=370634 R=dalecurtis@chromium.org, xhwang@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/af1afa545ba0eecc6daf38be9d94073798f86848

Patch Set 1 : #

Total comments: 8

Patch Set 2 : rename to front/back #

Total comments: 2

Patch Set 3 : fix & rebase #

Total comments: 2

Patch Set 4 : more comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -148 lines) Patch
M media/filters/audio_clock.h View 1 2 3 4 chunks +52 lines, -12 lines 0 comments Download
M media/filters/audio_clock.cc View 1 4 chunks +9 lines, -9 lines 0 comments Download
M media/filters/audio_clock_unittest.cc View 1 9 chunks +94 lines, -69 lines 0 comments Download
M media/filters/audio_renderer_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 2 3 chunks +33 lines, -20 lines 0 comments Download
M media/filters/renderer_impl.cc View 1 2 2 chunks +0 lines, -10 lines 0 comments Download
M media/filters/renderer_impl_unittest.cc View 1 2 1 chunk +0 lines, -28 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
scherkus (not reviewing)
dalecurtis: audio stuff xhwang: renderer stuff I still think there are some content_browsertests timing out, ...
6 years, 3 months ago (2014-08-29 19:23:27 UTC) #2
DaleCurtis
https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_clock.h File media/filters/audio_clock.h (right): https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_clock.h#newcode38 media/filters/audio_clock.h:38: // Returns the latest media timestamp taking silence and ...
6 years, 3 months ago (2014-08-29 20:17:23 UTC) #3
scherkus (not reviewing)
https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc#newcode600 media/filters/audio_renderer_impl.cc:600: SetBufferingState_Locked(BUFFERING_HAVE_NOTHING); On 2014/08/29 20:17:23, DaleCurtis wrote: > Shouldn't you ...
6 years, 3 months ago (2014-08-29 20:32:03 UTC) #4
xhwang
renderer_impl changes look good. One question though: What's the long term plan to handle the ...
6 years, 3 months ago (2014-08-29 20:45:48 UTC) #5
DaleCurtis
https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc#newcode600 media/filters/audio_renderer_impl.cc:600: SetBufferingState_Locked(BUFFERING_HAVE_NOTHING); On 2014/08/29 20:32:02, scherkus wrote: > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 20:59:17 UTC) #6
scherkus (not reviewing)
https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc#newcode600 media/filters/audio_renderer_impl.cc:600: SetBufferingState_Locked(BUFFERING_HAVE_NOTHING); On 2014/08/29 20:59:17, DaleCurtis wrote: > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 21:29:00 UTC) #7
DaleCurtis
https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_renderer_impl.cc#newcode600 media/filters/audio_renderer_impl.cc:600: SetBufferingState_Locked(BUFFERING_HAVE_NOTHING); On 2014/08/29 21:29:00, scherkus wrote: > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 22:04:42 UTC) #8
scherkus (not reviewing)
https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_clock.h File media/filters/audio_clock.h (right): https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_clock.h#newcode39 media/filters/audio_clock.h:39: // playback rate into account. On 2014/08/29 20:45:48, xhwang ...
6 years, 3 months ago (2014-08-30 00:24:12 UTC) #9
xhwang
On 2014/08/30 00:24:12, scherkus wrote: > https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_clock.h > File media/filters/audio_clock.h (right): > > https://codereview.chromium.org/518613002/diff/20001/media/filters/audio_clock.h#newcode39 > ...
6 years, 3 months ago (2014-08-30 00:36:31 UTC) #10
scherkus (not reviewing)
PTAL -- I renamed the API to front/back_timestamp()
6 years, 3 months ago (2014-09-02 21:26:22 UTC) #11
DaleCurtis
lgtm % comment fixups. https://codereview.chromium.org/518613002/diff/40001/media/filters/audio_clock.h File media/filters/audio_clock.h (right): https://codereview.chromium.org/518613002/diff/40001/media/filters/audio_clock.h#newcode34 media/filters/audio_clock.h:34: // Can you add the ...
6 years, 3 months ago (2014-09-03 22:00:45 UTC) #12
scherkus (not reviewing)
https://codereview.chromium.org/518613002/diff/40001/media/filters/audio_clock.h File media/filters/audio_clock.h (right): https://codereview.chromium.org/518613002/diff/40001/media/filters/audio_clock.h#newcode34 media/filters/audio_clock.h:34: // On 2014/09/03 22:00:45, DaleCurtis wrote: > Can you ...
6 years, 3 months ago (2014-09-03 22:23:18 UTC) #13
xhwang
renderer changes lgtm I don't really understand this AudioClock though. Left a comment asking for ...
6 years, 3 months ago (2014-09-03 23:37:34 UTC) #14
scherkus (not reviewing)
https://codereview.chromium.org/518613002/diff/60001/media/filters/audio_clock.h File media/filters/audio_clock.h (right): https://codereview.chromium.org/518613002/diff/60001/media/filters/audio_clock.h#newcode47 media/filters/audio_clock.h:47: base::TimeDelta back_timestamp() const { return back_timestamp_; } On 2014/09/03 ...
6 years, 3 months ago (2014-09-04 01:47:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/518613002/80001
6 years, 3 months ago (2014-09-04 06:23:38 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/9907)
6 years, 3 months ago (2014-09-04 08:00:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/518613002/100001
6 years, 3 months ago (2014-09-04 19:57:43 UTC) #21
scherkus (not reviewing)
Committed patchset #5 (id:100001) manually as af1afa5 (presubmit successful).
6 years, 3 months ago (2014-09-04 21:59:42 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:32:53 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/af1afa545ba0eecc6daf38be9d94073798f86848
Cr-Commit-Position: refs/heads/master@{#293343}

Powered by Google App Engine
This is Rietveld 408576698