Index: Source/core/platform/audio/AudioResampler.cpp |
diff --git a/Source/core/platform/audio/AudioResampler.cpp b/Source/core/platform/audio/AudioResampler.cpp |
index 7b5dd9f875049982ceda2ce943cd54f1fdc4af9f..faeecae1bbfbca8b167d9918e6203c24c0b0abe2 100644 |
--- a/Source/core/platform/audio/AudioResampler.cpp |
+++ b/Source/core/platform/audio/AudioResampler.cpp |
@@ -42,7 +42,7 @@ AudioResampler::AudioResampler() |
: m_rate(1.0) |
{ |
m_kernels.append(adoptPtr(new AudioResamplerKernel(this))); |
- m_sourceBus = adoptRef(new AudioBus(1, 0, false)); |
+ m_sourceBus = AudioBus::create(1, 0, false); |
} |
AudioResampler::AudioResampler(unsigned numberOfChannels) |
@@ -51,7 +51,7 @@ AudioResampler::AudioResampler(unsigned numberOfChannels) |
for (unsigned i = 0; i < numberOfChannels; ++i) |
m_kernels.append(adoptPtr(new AudioResamplerKernel(this))); |
- m_sourceBus = adoptRef(new AudioBus(numberOfChannels, 0, false)); |
+ m_sourceBus = AudioBus::create(numberOfChannels, 0, false); |
} |
void AudioResampler::configureChannels(unsigned numberOfChannels) |
@@ -68,7 +68,7 @@ void AudioResampler::configureChannels(unsigned numberOfChannels) |
m_kernels.resize(numberOfChannels); |
// Reconfigure our source bus to the new channel size. |
- m_sourceBus = adoptRef(new AudioBus(numberOfChannels, 0, false)); |
+ m_sourceBus = AudioBus::create(numberOfChannels, 0, false); |
} |
void AudioResampler::process(AudioSourceProvider* provider, AudioBus* destinationBus, size_t framesToProcess) |