WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
109983
Enhance AudioBus copyFrom() and sumFrom() to be able to handle discrete and speakers up and down-mixing
https://bugs.webkit.org/show_bug.cgi?id=109983
Summary
Enhance AudioBus copyFrom() and sumFrom() to be able to handle discrete and s...
Chris Rogers
Reported
2013-02-15 16:28:27 PST
Enhance AudioBus copyFrom() and sumFrom() to be able to handle discrete and speakers up and down-mixing
Attachments
Patch
(11.52 KB, patch)
2013-02-15 16:37 PST
,
Chris Rogers
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Rogers
Comment 1
2013-02-15 16:37:16 PST
Created
attachment 188666
[details]
Patch
Kenneth Russell
Comment 2
2013-02-15 18:39:27 PST
Comment on
attachment 188666
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=188666&action=review
Code looks reasonable to me. One question.
> Source/WebCore/platform/audio/AudioBus.cpp:373 > channel(i)->sumFrom(sourceBus.channel(i));
Is anything else supposed to happen here? For example, zeroing the remaining destination channels?
Chris Rogers
Comment 3
2013-02-15 19:09:27 PST
Comment on
attachment 188666
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=188666&action=review
>> Source/WebCore/platform/audio/AudioBus.cpp:373 >> channel(i)->sumFrom(sourceBus.channel(i)); > > Is anything else supposed to happen here? For example, zeroing the remaining destination channels?
Since we're summing into the destination, we don't want to zero out the remaining channels. You can consider that the "missing" channels are just silent channels which are being summed in. But, since summing in silence is a NOP, there's nothing to do. In the "copy" case, then we *do* want to zero out the channels, since copying silence is the same as calling zero()
WebKit Review Bot
Comment 4
2013-02-15 19:49:00 PST
Comment on
attachment 188666
[details]
Patch Clearing flags on attachment: 188666 Committed
r143094
: <
http://trac.webkit.org/changeset/143094
>
WebKit Review Bot
Comment 5
2013-02-15 19:49:03 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug