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

Issue 2567143002: media::SilentSinkSuspender should simulate |delay| and |delay_timestamp| (Closed)

Created:
4 years ago by Mikhail
Modified:
3 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media::SilentSinkSuspender should simulate |delay| and |delay_timestamp| This patch provides estimation of the |delay| and |delay_timestamp| values for the wrapped |callback_|, otherwise the implementation of the 'AudioContext.getOutputTimestamp()' [1] returns inappropriate values when the "fake sink" is used. BUG=619533 [1] https://codereview.chromium.org/2060833002/ Review-Url: https://codereview.chromium.org/2567143002 Cr-Commit-Position: refs/heads/master@{#442536} Committed: https://chromium.googlesource.com/chromium/src/+/fa73a9762b712c779a7eda292e3e32f08d2d42c5

Patch Set 1 #

Total comments: 5

Patch Set 2 : Comments from chcunningham@ #

Patch Set 3 : media_perftests compilation fix #

Total comments: 1

Patch Set 4 : build fix content_unittets & media_blink_unittsests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -44 lines) Patch
M content/renderer/media/audio_renderer_mixer_manager_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/html_audio_element_capturer_source_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_bus_perftest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/audio_converter_unittest.cc View 1 5 chunks +7 lines, -5 lines 0 comments Download
M media/base/audio_hash_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/audio_renderer_mixer_input_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_renderer_mixer_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M media/base/fake_audio_render_callback.h View 1 3 chunks +7 lines, -8 lines 0 comments Download
M media/base/fake_audio_render_callback.cc View 1 2 chunks +10 lines, -10 lines 0 comments Download
M media/base/silent_sink_suspender.h View 1 chunk +8 lines, -0 lines 0 comments Download
M media/base/silent_sink_suspender.cc View 1 3 chunks +13 lines, -3 lines 0 comments Download
M media/base/silent_sink_suspender_unittest.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl_unittest.cc View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 64 (40 generated)
Mikhail
Please take a look.
4 years ago (2016-12-12 21:21:58 UTC) #4
chcunningham
Can your provide some examples of how things go wrong for the math in getOutputTimestamp? ...
4 years ago (2016-12-14 01:01:44 UTC) #12
Mikhail
On 2016/12/14 01:01:44, chcunningham wrote: > Can your provide some examples of how things go ...
4 years ago (2016-12-15 14:39:16 UTC) #13
chcunningham
> On 2016/12/14 01:01:44, chcunningham wrote: > > Can your provide some examples of how ...
4 years ago (2016-12-15 23:17:26 UTC) #14
chcunningham
I should clarify... > This is the part I'm confused about. Can you provide some ...
4 years ago (2016-12-15 23:19:29 UTC) #15
Mikhail
On 2016/12/15 23:17:26, chcunningham wrote: > > On 2016/12/14 01:01:44, chcunningham wrote: > > > ...
4 years ago (2016-12-16 14:02:37 UTC) #16
chcunningham
On 2016/12/16 14:02:37, Mikhail wrote: > On 2016/12/15 23:17:26, chcunningham wrote: > > > On ...
4 years ago (2016-12-16 20:05:22 UTC) #17
Mikhail
On 2016/12/16 20:05:22, chcunningham wrote: > > Thanks, that example helped me understand. I follow ...
4 years ago (2016-12-16 22:50:43 UTC) #18
Mikhail
chcunningham@, which approach would you prefer?
4 years ago (2016-12-19 19:06:17 UTC) #19
Mikhail
sandersd@, maybe you could take a look at this CL (chcunningham@ is OOO for a ...
4 years ago (2016-12-20 16:51:51 UTC) #20
chcunningham
This generally looks good - but I'll appreciate getting sanders second opinion. On the one ...
4 years ago (2016-12-20 18:36:43 UTC) #21
Mikhail
https://codereview.chromium.org/2567143002/diff/20001/media/base/fake_audio_render_callback.cc File media/base/fake_audio_render_callback.cc (right): https://codereview.chromium.org/2567143002/diff/20001/media/base/fake_audio_render_callback.cc#newcode37 media/base/fake_audio_render_callback.cc:37: constexpr int kSampleRate = 48000; On 2016/12/20 18:36:42, chcunningham_ooo_until_jan_1 ...
4 years ago (2016-12-20 21:45:51 UTC) #27
sandersd (OOO until July 31)
> I'll appreciate getting sanders second opinion. I don't know sinks well enough to be ...
4 years ago (2016-12-21 00:49:05 UTC) #30
chcunningham
remove: sandersd@ add: dalecurtis@ https://codereview.chromium.org/2567143002/diff/20001/media/base/silent_sink_suspender.cc File media/base/silent_sink_suspender.cc (right): https://codereview.chromium.org/2567143002/diff/20001/media/base/silent_sink_suspender.cc#newcode63 media/base/silent_sink_suspender.cc:63: delay_timestamp += elapsedTime; On 2016/12/20 ...
4 years ago (2016-12-21 07:02:54 UTC) #32
Mikhail
On 2016/12/21 07:02:54, chcunningham_ooo_until_jan_1 wrote: > remove: sandersd@ > add: dalecurtis@ > > No worries. ...
4 years ago (2016-12-21 08:07:41 UTC) #33
chcunningham
On 2016/12/21 08:07:41, Mikhail OOO till Jan 9 wrote: > On 2016/12/21 07:02:54, chcunningham_ooo_until_jan_1 wrote: ...
3 years, 11 months ago (2017-01-04 00:14:28 UTC) #38
DaleCurtis
On 2017/01/04 at 00:14:28, chcunningham wrote: > On 2016/12/21 08:07:41, Mikhail OOO till Jan 9 ...
3 years, 11 months ago (2017-01-05 22:44:54 UTC) #39
chcunningham
On 2017/01/05 22:44:54, DaleCurtis wrote: > On 2017/01/04 at 00:14:28, chcunningham wrote: > > On ...
3 years, 11 months ago (2017-01-05 22:55:44 UTC) #40
DaleCurtis
OIC, this seems okay to me then. This code is only used for WebAudio at ...
3 years, 11 months ago (2017-01-05 23:07:23 UTC) #41
chcunningham
On 2017/01/05 23:07:23, DaleCurtis wrote: > OIC, this seems okay to me then. And with ...
3 years, 11 months ago (2017-01-05 23:35:01 UTC) #42
Mikhail
miu@chromium.org: Please review changes in content/renderer/media
3 years, 11 months ago (2017-01-09 18:21:07 UTC) #55
miu
content/renderer/media lgtm
3 years, 11 months ago (2017-01-10 00:55:07 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2567143002/120001
3 years, 11 months ago (2017-01-10 09:10:32 UTC) #61
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 09:14:48 UTC) #64
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/fa73a9762b712c779a7eda292e3e...

Powered by Google App Engine
This is Rietveld 408576698