Skip to content
  • crogers@google.com's avatar
    Implement optional arguments in AudioBufferSourceNode start() method · 91a48cba
    crogers@google.com authored
    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: http://svn.webkit.org/repository/webkit/trunk@133101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    91a48cba