Index: Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp |
diff --git a/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp b/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp |
index a5f5074da7dcafe51cb49fc2fea162d98be6280a..93bc9c92f89b0d1a60e7379e1eb50c41e53f1f4f 100644 |
--- a/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp |
+++ b/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp |
@@ -45,7 +45,7 @@ PassRefPtr<MediaStreamAudioDestinationNode> MediaStreamAudioDestinationNode::cre |
MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode(AudioContext* context, size_t numberOfChannels) |
: AudioBasicInspectorNode(context, context->sampleRate(), numberOfChannels) |
- , m_mixBus(numberOfChannels, ProcessingSizeInFrames) |
+ , m_mixBus(AudioBus::create(numberOfChannels, ProcessingSizeInFrames)) |
{ |
setNodeType(NodeTypeMediaStreamAudioDestination); |
@@ -73,8 +73,8 @@ MediaStreamAudioDestinationNode::~MediaStreamAudioDestinationNode() |
void MediaStreamAudioDestinationNode::process(size_t numberOfFrames) |
{ |
- m_mixBus.copyFrom(*input(0)->bus()); |
- m_source->consumeAudio(&m_mixBus, numberOfFrames); |
+ m_mixBus->copyFrom(*input(0)->bus()); |
+ m_source->consumeAudio(m_mixBus.get(), numberOfFrames); |
} |
void MediaStreamAudioDestinationNode::reset() |