Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Unified Diff: Source/core/platform/audio/MultiChannelResampler.cpp

Issue 14628008: Require use of AudioBus::create() to avoid ref-counting issues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Require use of Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/audio/AudioResampler.cpp ('k') | Source/core/platform/audio/Reverb.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/MultiChannelResampler.cpp
diff --git a/Source/core/platform/audio/MultiChannelResampler.cpp b/Source/core/platform/audio/MultiChannelResampler.cpp
index 806a9e09c153a08d8b05c8e5887377b0496b3f94..4bd742fde1ea6b0e437c8aaef9051088be51f1b7 100644
--- a/Source/core/platform/audio/MultiChannelResampler.cpp
+++ b/Source/core/platform/audio/MultiChannelResampler.cpp
@@ -64,7 +64,7 @@ public:
// For subsequent channels, we can just dish out the channel data from that (stored in m_multiChannelBus).
if (!m_currentChannel) {
m_framesToProcess = framesToProcess;
- m_multiChannelBus = adoptRef(new AudioBus(m_numberOfChannels, framesToProcess));
+ m_multiChannelBus = AudioBus::create(m_numberOfChannels, framesToProcess);
m_multiChannelProvider->provideInput(m_multiChannelBus.get(), framesToProcess);
}
« no previous file with comments | « Source/core/platform/audio/AudioResampler.cpp ('k') | Source/core/platform/audio/Reverb.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698