| Index: third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
|
| index 7389fc222e3dad7fcec41884bce779c6e6c3cd8c..d2d52f8bd52173c6858ad65a4f22572f8e9f8820 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
|
| @@ -10,6 +10,7 @@
|
| #include "modules/webaudio/AudioNodeInput.h"
|
| #include "modules/webaudio/AudioNodeOutput.h"
|
| #include "modules/webaudio/BaseAudioContext.h"
|
| +#include "modules/webaudio/StereoPannerOptions.h"
|
| #include "platform/audio/StereoPanner.h"
|
| #include "wtf/MathExtras.h"
|
|
|
| @@ -153,6 +154,21 @@ StereoPannerNode* StereoPannerNode::create(BaseAudioContext& context, ExceptionS
|
| return new StereoPannerNode(context);
|
| }
|
|
|
| +StereoPannerNode* StereoPannerNode::create(BaseAudioContext* context, const StereoPannerOptions& options, ExceptionState& exceptionState)
|
| +{
|
| + StereoPannerNode* node = create(*context, exceptionState);
|
| +
|
| + if (!node)
|
| + return node;
|
| +
|
| + node->handleChannelOptions(options, exceptionState);
|
| +
|
| + if (options.hasPan())
|
| + node->pan()->setValue(options.pan());
|
| +
|
| + return node;
|
| +}
|
| +
|
| DEFINE_TRACE(StereoPannerNode)
|
| {
|
| visitor->trace(m_pan);
|
|
|