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

Issue 1990303002: Moving FIFO from AudioDestination to RendererWebAudioDeviceImpl (Closed)

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

Description

Moving FIFO from AudioDestination to RendererWebAudioDeviceImpl This is Step 1: FIFO injection in case render callback buffer size does not match buffer size specified by the client in the constructor. BUG=564472

Patch Set 1 #

Patch Set 2 : :fixed to work on Android as well #

Patch Set 3 : Android buffer calculation added (logic from AudioDestination) #

Patch Set 4 : fix for android compilation error #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -16 lines) Patch
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 3 chunks +13 lines, -1 line 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 2 3 7 chunks +80 lines, -15 lines 2 comments Download

Messages

Total messages: 15 (5 generated)
o1ka
PTAL: rtoy@/hongchan@ - does it work for you? (and what is the WebAudio refactoring bug ...
4 years, 6 months ago (2016-05-26 16:24:49 UTC) #6
hongchan
The work-in-progress CL on AudioDestination refactoring is: https://codereview.chromium.org/1967393002/ (AudioDestination is now AudioRenderSink) I can merge ...
4 years, 6 months ago (2016-05-26 16:43:33 UTC) #7
o1ka
https://codereview.chromium.org/1990303002/diff/60001/content/renderer/media/renderer_webaudiodevice_impl.cc File content/renderer/media/renderer_webaudiodevice_impl.cc (right): https://codereview.chromium.org/1990303002/diff/60001/content/renderer/media/renderer_webaudiodevice_impl.cc#newcode112 content/renderer/media/renderer_webaudiodevice_impl.cc:112: base::Bind(&media::NullAudioSink::Play, null_audio_sink_)); On 2016/05/26 16:43:33, hoch wrote: > I ...
4 years, 6 months ago (2016-05-26 16:47:48 UTC) #8
o1ka
On 2016/05/26 16:43:33, hoch wrote: > The work-in-progress CL on AudioDestination refactoring is: > https://codereview.chromium.org/1967393002/ ...
4 years, 6 months ago (2016-05-26 16:54:27 UTC) #9
Raymond Toy
On 2016/05/26 16:54:27, o1ka wrote: > On 2016/05/26 16:43:33, hoch wrote: > > The work-in-progress ...
4 years, 6 months ago (2016-05-26 16:57:19 UTC) #10
hongchan
On 2016/05/26 16:54:27, o1ka wrote: > On 2016/05/26 16:43:33, hoch wrote: > > The work-in-progress ...
4 years, 6 months ago (2016-05-26 16:58:04 UTC) #11
o1ka
On 2016/05/26 16:58:04, hoch wrote: > On 2016/05/26 16:54:27, o1ka wrote: > > On 2016/05/26 ...
4 years, 6 months ago (2016-05-26 17:21:28 UTC) #12
hongchan
On 2016/05/26 16:58:04, hoch wrote: > On 2016/05/26 16:54:27, o1ka wrote: > > On 2016/05/26 ...
4 years, 6 months ago (2016-05-26 17:26:47 UTC) #13
o1ka
On 2016/05/26 17:26:47, hoch wrote: > On 2016/05/26 16:58:04, hoch wrote: > > On 2016/05/26 ...
4 years, 6 months ago (2016-05-26 18:08:10 UTC) #14
hongchan
4 years, 6 months ago (2016-05-26 18:09:21 UTC) #15
On 2016/05/26 18:08:10, o1ka wrote:
> On 2016/05/26 17:26:47, hoch wrote:
> > On 2016/05/26 16:58:04, hoch wrote:
> > > On 2016/05/26 16:54:27, o1ka wrote:
> > > > On 2016/05/26 16:43:33, hoch wrote:
> > > > > The work-in-progress CL on AudioDestination refactoring is:
> > > > > https://codereview.chromium.org/1967393002/
> > > > > 
> > > > > (AudioDestination is now AudioRenderSink)
> > > > > 
> > > > > I can merge this CL with mine to finish the refactoring. It will be
> simply
> > > > > removing pull FIFO from AudioRenderSink.
> > > > > 
> > > > 
> > > > We need either this change or a fix for
> > > > https://bugs.chromium.org/p/chromium/issues/detail?id=611377 in the
middle
> > of
> > > > the next week.
> > > > I'm not sure if having dependency on your CL fits in this timeline.
> > > > 
> > > > rtoy@, could you fix bug 611377 then? Or will we land this CL
separately?
> > > 
> > > What you need is just to remove pullFIFO from AudioDestination. Right? If
> > that's
> > > the case, I can do that with this CL. I showed you my prototype just to
give
> > you
> > > the idea of refactoring.
> > 
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit...
> > 
> > Do we still need to pass the callback size of WebAudio? (which is 128
samples,
> > fixed) I guess Blink just creates the device, and the renderer always pulls
> 128
> > samples. The buffer size is a part of client_params_, but I am not sure who
> uses
> > it in the renderer code.
> 
> We need to know what buffer size to use to pull the data from WebAudio (It's
> used for FIFO initialization). I think it's better to pass it as a parameter,
> rather than to have two hard-coded constants (one in WebAudio and one in
> renderer) those can diverge.

Agreed.

Powered by Google App Engine
This is Rietveld 408576698