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

Issue 10928147: Flip AudioOutputResampler to on by default. (Closed)

Created:
8 years, 3 months ago by DaleCurtis
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Flip AudioOutputResampler to on by default. BUG=147572 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156803

Patch Set 1 : Typo. #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : Fix audio output. #

Patch Set 4 : Fix mac audio out. #

Patch Set 5 : Rebase. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -11 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_manager_base.cc View 1 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/audio/mac/audio_low_latency_output_mac.cc View 1 2 3 3 chunks +18 lines, -3 lines 1 comment Download
M media/base/media_switches.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/media_switches.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
DaleCurtis
Preemptive CL for when we want to turn this on by default. I'll be OOO ...
8 years, 3 months ago (2012-09-12 15:16:04 UTC) #1
scherkus (not reviewing)
lgtm code-wise w/ q still need to verify remaining issues are indeed non-issues prior to ...
8 years, 3 months ago (2012-09-13 12:43:09 UTC) #2
brettw
lgtm
8 years, 3 months ago (2012-09-13 19:42:48 UTC) #3
DaleCurtis
https://chromiumcodereview.appspot.com/10928147/diff/2001/media/audio/audio_manager_base.cc File media/audio/audio_manager_base.cc (right): https://chromiumcodereview.appspot.com/10928147/diff/2001/media/audio/audio_manager_base.cc#newcode161 media/audio/audio_manager_base.cc:161: params.format() == AudioParameters::AUDIO_PCM_LOW_LATENCY) { On 2012/09/13 12:43:09, scherkus wrote: ...
8 years, 3 months ago (2012-09-14 09:04:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10928147/6001
8 years, 3 months ago (2012-09-14 12:48:56 UTC) #5
DaleCurtis
There are no outstanding issues that I'm aware of. All relevant CLs are in the ...
8 years, 3 months ago (2012-09-14 12:54:23 UTC) #6
DaleCurtis
+crogers, mac_rel failures are due to AUAudioOutputStream recieving a request from the OS for a ...
8 years, 3 months ago (2012-09-14 15:00:24 UTC) #7
DaleCurtis
On 2012/09/14 15:00:24, DaleCurtis wrote: > +crogers, mac_rel failures are due to AUAudioOutputStream recieving a ...
8 years, 3 months ago (2012-09-14 15:45:50 UTC) #8
Chris Rogers
Dale, what buffer-size is it failing to take into account? There is an upper-limit. https://chromiumcodereview.appspot.com/10928147/diff/13008/media/audio/mac/audio_low_latency_output_mac.cc ...
8 years, 3 months ago (2012-09-14 17:28:45 UTC) #9
DaleCurtis
On 2012/09/14 17:28:45, Chris Rogers wrote: > Dale, what buffer-size is it failing to take ...
8 years, 3 months ago (2012-09-14 18:03:56 UTC) #10
Chris Rogers
On Fri, Sep 14, 2012 at 11:03 AM, <dalecurtis@chromium.org> wrote: > On 2012/09/14 17:28:45, Chris ...
8 years, 3 months ago (2012-09-14 18:09:49 UTC) #11
DaleCurtis
8 years, 3 months ago (2012-09-14 18:21:08 UTC) #12
On 2012/09/14 18:09:49, Chris Rogers wrote:
> On Fri, Sep 14, 2012 at 11:03 AM, <mailto:dalecurtis@chromium.org> wrote:
> 
> > On 2012/09/14 17:28:45, Chris Rogers wrote:
> >
> >> Dale, what buffer-size is it failing to take into account?  There is an
> >> upper-limit.
> >>
> >
> > We are configuring the device for 128 frames and it was asking for 440.
> > Since we
> > fill based on AudioBus frame count it needs to be consistent. If you
> > expect it
> > to vary I can come up with a smart resizing algorithm for Audio Bus
> > objects.
> 
> 
> That doesn't sound right - we've always been using a buffer size of 128 in
> AUAudioOutputStream (WebAudio for example) and it calls back with the right
> size.  What's different in this case?
> 

My guess was this is the first time we've used that buffer size in a unit test
running on a bot. WebRTC was previously using 440ish.

I'm definitely planning to debug more. I was unable to reproduce the issue on
laptop though. If you have some time can you try the Web RTC AGC test on your
macs and see if you can trigger the frame size mismatch.

I'll poke so more at it on Monday too.
> 
> >
> >
> >
> > https://chromiumcodereview.**appspot.com/10928147/diff/**
> >
>
13008/media/audio/mac/audio_**low_latency_output_mac.cc<https://chromiumcodereview.appspot.com/10928147/diff/13008/media/audio/mac/audio_low_latency_output_mac.cc>
> >
> >> File media/audio/mac/audio_low_**latency_output_mac.cc (right):
> >>
> >
> >
> > https://chromiumcodereview.**appspot.com/10928147/diff/**
> >
>
13008/media/audio/mac/audio_**low_latency_output_mac.cc#**newcode244<https://chromiumcodereview.appspot.com/10928147/diff/13008/media/audio/mac/audio_low_latency_output_mac.cc#newcode244>
> >
> >> media/audio/mac/audio_low_**latency_output_mac.cc:244: }
> >> I'm not crazy about this change long-term, and I'd like to discuss
> >>
> > alternatives.
> >
> >>   Can you please add a TODO to revisit for potential cleanup?
> >>
> >
> >
> >
> >
>
http://codereview.chromium.**org/10928147/%3Chttp://codereview.chromium.org/1...>
> >

Powered by Google App Engine
This is Rietveld 408576698