Index: third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp b/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp |
index e8b7168e6d813d0431f4e2774b068790544ff61c..af2e8a240fa56b8b4d81ebec2b141f1871c9ef0a 100644 |
--- a/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp |
+++ b/third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp |
@@ -26,8 +26,9 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#include "platform/audio/MultiChannelResampler.h" |
#include "platform/audio/AudioBus.h" |
+#include "platform/audio/MultiChannelResampler.h" |
+#include "wtf/PtrUtil.h" |
namespace blink { |
@@ -92,7 +93,7 @@ MultiChannelResampler::MultiChannelResampler(double scaleFactor, unsigned number |
{ |
// Create each channel's resampler. |
for (unsigned channelIndex = 0; channelIndex < numberOfChannels; ++channelIndex) |
- m_kernels.append(adoptPtr(new SincResampler(scaleFactor))); |
+ m_kernels.append(wrapUnique(new SincResampler(scaleFactor))); |
} |
void MultiChannelResampler::process(AudioSourceProvider* provider, AudioBus* destination, size_t framesToProcess) |