|
|
Created:
6 years, 9 months ago by no longer working on chromium Modified:
6 years, 8 months ago CC:
blink-reviews Base URL:
svn://svn.chromium.org/blink/trunk Visibility:
Public. |
DescriptionMake WebAudio output as stereo as default.
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169964
Patch Set 1 #
Total comments: 6
Patch Set 2 : changed the comment #Messages
Total messages: 14 (0 generated)
Tommy, could you please review this small patch? SX
https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... File Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... Source/modules/webaudio/AudioContext.cpp:421: // FIXME: Add support for an optional argument which specifies the number of channels. I guess this comment can be removed as well https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... Source/modules/webaudio/AudioContext.cpp:422: return MediaStreamAudioDestinationNode::create(this, 2); Can this be made into an enum? MediaStreamAudioDestinationNode::Stereo is much better than 2.
Tommy, PTAL. Thanks, SX https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... File Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... Source/modules/webaudio/AudioContext.cpp:413: node->setFormat(2, sampleRate()); for example here https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... Source/modules/webaudio/AudioContext.cpp:421: // FIXME: Add support for an optional argument which specifies the number of channels. On 2014/03/25 09:49:27, Tommy Widenflycht wrote: > I guess this comment can be removed as well Done with replacing the FIXME with a comment, as how it is done in other places. https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... Source/modules/webaudio/AudioContext.cpp:422: return MediaStreamAudioDestinationNode::create(this, 2); On 2014/03/25 09:49:27, Tommy Widenflycht wrote: > Can this be made into an enum? MediaStreamAudioDestinationNode::Stereo is much > better than 2. :) Looking at the whole file, they use 2 for the channel. I suggest we should keep what it is, and leave it to WebAudio guys to do a thorough clean-up if they think it is suitable. https://codereview.chromium.org/210713005/diff/1/Source/modules/webaudio/Audi... Source/modules/webaudio/AudioContext.cpp:428: return createScriptProcessor(0, 2, 2, exceptionState); here, and elsewhere in all the webaudio code.
lgtm
Chris, can I have your stamp for this small fix? SX
On 2014/03/25 17:08:50, xians1 wrote: > Chris, can I have your stamp for this small fix? > > SX I'm not Chris, but lgtm from me.
The CQ bit was checked by xians@chromium.org
The CQ bit was unchecked by xians@chromium.org
The CQ bit was checked by xians@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/210713005/20001
Message was sent while issue was closed.
Change committed as 169964
Message was sent while issue was closed.
Thanks Raymond, I am landing this now so that the fix can be in tomorrow's canary and our tester can verify it before the cut. Chris, feel free to have comment and I will be glad to make follow-up CLs.
Message was sent while issue was closed.
On 2014/03/25 17:17:25, xians1 wrote: > Thanks Raymond, I am landing this now so that the fix can be in tomorrow's > canary and our tester can verify it before the cut. > > Chris, feel free to have comment and I will be glad to make follow-up CLs. LGTM.
I know this is slightly off topic, but ... is there currently a way (preferably in the stable release) to actually set the number of channels from the JavaScript end or are we stuck with mono until this patch hits (and then with stereo)? The way I understand it, a media stream destination should adjust to the available output channels and up/downmix accordingly. channelCount doesn't seem to do anything at the moment and even defaults to 2 despite the output being mono ... To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org. |