Index: Source/modules/webaudio/AudioNodeInput.cpp |
diff --git a/Source/modules/webaudio/AudioNodeInput.cpp b/Source/modules/webaudio/AudioNodeInput.cpp |
index 6c36cfd4ebafdce38c915149647195ecf12fd5c8..12ecea4ecf6755a92827e24c1ced80aef0597bd3 100644 |
--- a/Source/modules/webaudio/AudioNodeInput.cpp |
+++ b/Source/modules/webaudio/AudioNodeInput.cpp |
@@ -42,7 +42,7 @@ AudioNodeInput::AudioNodeInput(AudioNode* node) |
, m_node(node) |
{ |
// Set to mono by default. |
- m_internalSummingBus = adoptRef(new AudioBus(1, AudioNode::ProcessingSizeInFrames)); |
+ m_internalSummingBus = AudioBus::create(1, AudioNode::ProcessingSizeInFrames); |
} |
void AudioNodeInput::connect(AudioNodeOutput* output) |
@@ -144,7 +144,7 @@ void AudioNodeInput::updateInternalBus() |
if (numberOfInputChannels == m_internalSummingBus->numberOfChannels()) |
return; |
- m_internalSummingBus = adoptRef(new AudioBus(numberOfInputChannels, AudioNode::ProcessingSizeInFrames)); |
+ m_internalSummingBus = AudioBus::create(numberOfInputChannels, AudioNode::ProcessingSizeInFrames); |
} |
unsigned AudioNodeInput::numberOfChannels() const |