| Index: Source/modules/webaudio/ChannelSplitterNode.cpp
|
| diff --git a/Source/modules/webaudio/ChannelSplitterNode.cpp b/Source/modules/webaudio/ChannelSplitterNode.cpp
|
| index 7d0b267df312bb43261dd092f8f67d30e783614e..4009ba4937389a9d97afdfbfd488867d248aa3f9 100644
|
| --- a/Source/modules/webaudio/ChannelSplitterNode.cpp
|
| +++ b/Source/modules/webaudio/ChannelSplitterNode.cpp
|
| @@ -33,13 +33,13 @@
|
| #include "modules/webaudio/AudioNodeOutput.h"
|
|
|
| namespace WebCore {
|
| -
|
| +
|
| PassRefPtr<ChannelSplitterNode> ChannelSplitterNode::create(AudioContext* context, float sampleRate, unsigned numberOfOutputs)
|
| {
|
| if (!numberOfOutputs || numberOfOutputs > AudioContext::maxNumberOfChannels())
|
| return 0;
|
|
|
| - return adoptRef(new ChannelSplitterNode(context, sampleRate, numberOfOutputs));
|
| + return adoptRef(new ChannelSplitterNode(context, sampleRate, numberOfOutputs));
|
| }
|
|
|
| ChannelSplitterNode::ChannelSplitterNode(AudioContext* context, float sampleRate, unsigned numberOfOutputs)
|
| @@ -61,13 +61,13 @@ void ChannelSplitterNode::process(size_t framesToProcess)
|
| AudioBus* source = input(0)->bus();
|
| ASSERT(source);
|
| ASSERT_UNUSED(framesToProcess, framesToProcess == source->length());
|
| -
|
| +
|
| unsigned numberOfSourceChannels = source->numberOfChannels();
|
| -
|
| +
|
| for (unsigned i = 0; i < numberOfOutputs(); ++i) {
|
| AudioBus* destination = output(i)->bus();
|
| ASSERT(destination);
|
| -
|
| +
|
| if (i < numberOfSourceChannels) {
|
| // Split the channel out if it exists in the source.
|
| // It would be nice to avoid the copy and simply pass along pointers, but this becomes extremely difficult with fanout and fanin.
|
|
|