Implement optional arguments in AudioBufferSourceNode start() method
authorcrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Nov 2012 00:39:39 +0000 (00:39 +0000)
committercrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Nov 2012 00:39:39 +0000 (00:39 +0000)
commit80453915385cbc1407b734634322ef18a510b7e6
tree6ec1d56c0f97b9f729ec9308eb2291c3d7ce8aa6
parent09fd7358c1bfefbfe3b82ab7555f205ba83db9b4
Implement optional arguments in AudioBufferSourceNode start() method
https://bugs.webkit.org/show_bug.cgi?id=100894

Reviewed by Kenneth Russell.

Source/WebCore:

The start() method should be able to take 1, 2, or 3 arguments, optionally supporting
offset and duration.  Currently, only 1 and 3 arguments are supported.

Test: webaudio/audiobuffersource-start.html

* Modules/webaudio/AudioBufferSourceNode.cpp:
(WebCore::AudioBufferSourceNode::renderFromBuffer):
(WebCore::AudioBufferSourceNode::startGrain):
(WebCore):
* Modules/webaudio/AudioBufferSourceNode.h:
(AudioBufferSourceNode):
* Modules/webaudio/AudioBufferSourceNode.idl:

LayoutTests:

* webaudio/audiobuffersource-loop-comprehensive.html:
* webaudio/audiobuffersource-start-expected.txt: Added.
* webaudio/audiobuffersource-start.html: Added.
* webaudio/resources/audiobuffersource-testing.js: Added.
(createTestBuffer):
(checkSingleTest):
(checkAllTests):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@133101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html
LayoutTests/webaudio/audiobuffersource-start-expected.txt [new file with mode: 0644]
LayoutTests/webaudio/audiobuffersource-start.html [new file with mode: 0644]
LayoutTests/webaudio/resources/audiobuffersource-testing.js [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.h
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl