AudioBus need to support stereo->mono down mix in copyFrom sumFrom etc.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Feb 2012 23:00:32 +0000 (23:00 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Feb 2012 23:00:32 +0000 (23:00 +0000)
commitd675817fb27dae03b402684ba55d8cfa8e5bb19f
tree12cd9456651b8466257c44d002efbe95223e47e3
parentcd0db18d43a668eddab8a71513ade65cd8ed7af5
AudioBus need to support stereo->mono down mix in copyFrom sumFrom etc.
https://bugs.webkit.org/show_bug.cgi?id=77609

Patch by Wei James <james.wei@intel.com> on 2012-02-06
Reviewed by Kenneth Russell.

Test: webaudio/stereo2mono-down-mixing.html

* platform/audio/AudioBus.cpp:
(WebCore):
(WebCore::AudioBus::copyFrom):
(WebCore::AudioBus::sumFrom):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@106858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/webaudio/stereo2mono-down-mixing-expected.txt [new file with mode: 0644]
LayoutTests/webaudio/stereo2mono-down-mixing.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/audio/AudioBus.cpp