Index: Source/core/platform/audio/SincResampler.cpp |
diff --git a/Source/core/platform/audio/SincResampler.cpp b/Source/core/platform/audio/SincResampler.cpp |
index 9f49b75598874ae989689e6f5faee5ac3c371f77..cb070f8e41db628d9ad8b2eda13008a723503ec7 100644 |
--- a/Source/core/platform/audio/SincResampler.cpp |
+++ b/Source/core/platform/audio/SincResampler.cpp |
@@ -134,12 +134,12 @@ void SincResampler::consumeSource(float* buffer, unsigned numberOfSourceFrames) |
return; |
// Wrap the provided buffer by an AudioBus for use by the source provider. |
- AudioBus bus(1, numberOfSourceFrames, false); |
+ RefPtr<AudioBus> bus = AudioBus::create(1, numberOfSourceFrames, false); |
// FIXME: Find a way to make the following const-correct: |
- bus.setChannelMemory(0, buffer, numberOfSourceFrames); |
+ bus->setChannelMemory(0, buffer, numberOfSourceFrames); |
- m_sourceProvider->provideInput(&bus, numberOfSourceFrames); |
+ m_sourceProvider->provideInput(bus.get(), numberOfSourceFrames); |
} |
namespace { |