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

Issue 1687213002: Express audio delay more precisely in frames rather than milliseconds. (Closed)

Created:
4 years, 10 months ago by chcunningham
Modified:
4 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wolenetz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Express audio delay more precisely in frames rather than milliseconds. This is a first step to reduce drift in audio video synchronization. With this change, drift in a 2 hour file will be mostly eliminated if the media sample rate matches that of the hardware (no resampling). Other sources of drift will be fixed in follow up cls. BUG=564604, 587522, 586540 TEST=webm file from reporter in http://crbug.com/564604#c9 Committed: https://crrev.com/7bdc23eebf424b510e57e33d05603ced780808db Cr-Commit-Position: refs/heads/master@{#375967}

Patch Set 1 : #

Total comments: 28

Patch Set 2 : Fixes for feedback. #

Total comments: 3

Patch Set 3 : Fix unittest, minor formatting #

Patch Set 4 : Fixes for feedback 2. #

Total comments: 4

Patch Set 5 : Adding bug number to TODO comments #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -56 lines) Patch
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/track_audio_renderer.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_renderer.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download
M media/audio/audio_device_thread.h View 1 chunk +3 lines, -2 lines 0 comments Download
M media/audio/audio_device_thread.cc View 1 chunk +10 lines, -8 lines 0 comments Download
M media/audio/audio_input_device.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/audio_output_device.cc View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M media/audio/audio_output_stream_sink.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M media/audio/audio_parameters.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M media/audio/audio_parameters.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/audio_capturer_source.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/audio_renderer_mixer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_renderer_mixer.cc View 1 2 3 4 3 chunks +10 lines, -3 lines 0 comments Download
M media/base/audio_renderer_mixer_input.cc View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M media/base/audio_renderer_sink.h View 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 2 3 4 5 6 chunks +19 lines, -21 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 2 3 4 5 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
chcunningham
Hi reviewers. This is the first of several cls to fix the av sync drift ...
4 years, 10 months ago (2016-02-11 01:25:42 UTC) #4
DaleCurtis
lgtm % suggestions and cleanup. https://codereview.chromium.org/1687213002/diff/40001/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc (right): https://codereview.chromium.org/1687213002/diff/40001/media/audio/audio_output_device.cc#newcode10 media/audio/audio_output_device.cc:10: #include cmath for std::round ...
4 years, 10 months ago (2016-02-11 01:57:16 UTC) #5
chcunningham
Thanks Dale. Still need to fix that unit test, but all other comments addressed. https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/renderer_webaudiodevice_impl.cc ...
4 years, 10 months ago (2016-02-11 21:02:52 UTC) #6
DaleCurtis
https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/renderer_webaudiodevice_impl.cc File content/renderer/media/renderer_webaudiodevice_impl.cc (right): https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/renderer_webaudiodevice_impl.cc#newcode103 content/renderer/media/renderer_webaudiodevice_impl.cc:103: uint32_t frames_delayed, On 2016/02/11 21:02:52, chcunningham wrote: > On ...
4 years, 10 months ago (2016-02-11 21:04:19 UTC) #8
Raymond Toy
On 2016/02/11 21:04:19, DaleCurtis wrote: > https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/renderer_webaudiodevice_impl.cc > File content/renderer/media/renderer_webaudiodevice_impl.cc (right): > > https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/renderer_webaudiodevice_impl.cc#newcode103 > ...
4 years, 10 months ago (2016-02-11 21:12:41 UTC) #9
chcunningham
On 2016/02/11 21:12:41, Raymond Toy wrote: > On 2016/02/11 21:04:19, DaleCurtis wrote: > > > ...
4 years, 10 months ago (2016-02-11 22:26:05 UTC) #10
Raymond Toy
On 2016/02/11 22:26:05, chcunningham wrote: > On 2016/02/11 21:12:41, Raymond Toy wrote: > > On ...
4 years, 10 months ago (2016-02-11 22:35:05 UTC) #11
Henrik Grunell
On 2016/02/11 22:35:05, Raymond Toy wrote: > On 2016/02/11 22:26:05, chcunningham wrote: > > On ...
4 years, 10 months ago (2016-02-12 17:46:14 UTC) #12
Henrik Grunell
Nice change. :) https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/webrtc_audio_renderer.cc File content/renderer/media/webrtc_audio_renderer.cc (right): https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/webrtc_audio_renderer.cc#newcode433 content/renderer/media/webrtc_audio_renderer.cc:433: // TODO(X): Converting from frames to ...
4 years, 10 months ago (2016-02-12 17:47:01 UTC) #13
chcunningham
Thanks Henrik! https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/webrtc_audio_renderer.cc File content/renderer/media/webrtc_audio_renderer.cc (right): https://codereview.chromium.org/1687213002/diff/40001/content/renderer/media/webrtc_audio_renderer.cc#newcode433 content/renderer/media/webrtc_audio_renderer.cc:433: // TODO(X): Converting from frames to milliseconds ...
4 years, 10 months ago (2016-02-17 01:56:52 UTC) #14
Henrik Grunell
lgtm https://codereview.chromium.org/1687213002/diff/60001/media/base/audio_renderer_mixer_input.cc File media/base/audio_renderer_mixer_input.cc (right): https://codereview.chromium.org/1687213002/diff/60001/media/base/audio_renderer_mixer_input.cc#newcode172 media/base/audio_renderer_mixer_input.cc:172: uint32_t frames_delayed = std::round(buffer_delay.InMicroseconds() / On 2016/02/17 01:56:52, ...
4 years, 10 months ago (2016-02-17 08:13:48 UTC) #15
chcunningham
Thanks Henrik! https://codereview.chromium.org/1687213002/diff/100001/media/base/audio_renderer_mixer.cc File media/base/audio_renderer_mixer.cc (right): https://codereview.chromium.org/1687213002/diff/100001/media/base/audio_renderer_mixer.cc#newcode138 media/base/audio_renderer_mixer.cc:138: // expect a count of frames delayed ...
4 years, 10 months ago (2016-02-17 18:32:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1687213002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1687213002/140001
4 years, 10 months ago (2016-02-17 18:45:19 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 10 months ago (2016-02-17 20:24:42 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 20:25:45 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7bdc23eebf424b510e57e33d05603ced780808db
Cr-Commit-Position: refs/heads/master@{#375967}

Powered by Google App Engine
This is Rietveld 408576698