Index: Source/core/platform/audio/Reverb.cpp |
diff --git a/Source/core/platform/audio/Reverb.cpp b/Source/core/platform/audio/Reverb.cpp |
index 1c23082b01d179e2e1348246fb74a6d1d87897c1..0a934ad7c0e0b2030ee6b4862bbcb371780b3a1d 100644 |
--- a/Source/core/platform/audio/Reverb.cpp |
+++ b/Source/core/platform/audio/Reverb.cpp |
@@ -132,7 +132,7 @@ void Reverb::initialize(AudioBus* impulseResponseBuffer, size_t renderSliceSize, |
// For "True" stereo processing we allocate a temporary buffer to avoid repeatedly allocating it in the process() method. |
// It can be bad to allocate memory in a real-time thread. |
if (numResponseChannels == 4) |
- m_tempBuffer = adoptRef(new AudioBus(2, MaxFrameSize)); |
+ m_tempBuffer = AudioBus::create(2, MaxFrameSize); |
} |
void Reverb::process(const AudioBus* sourceBus, AudioBus* destinationBus, size_t framesToProcess) |