From 55785c0a16938fe5148693a59451f698bef4133c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 17 Jun 2019 20:15:37 -0700 Subject: [PATCH] Use al::make_unique for ChannelConverter --- Alc/converter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Alc/converter.cpp b/Alc/converter.cpp index a36d05ad..aa74d510 100644 --- a/Alc/converter.cpp +++ b/Alc/converter.cpp @@ -327,8 +327,7 @@ ChannelConverterPtr CreateChannelConverter(DevFmtType srcType, DevFmtChannels sr if(srcChans != dstChans && !((srcChans == DevFmtMono && dstChans == DevFmtStereo) || (srcChans == DevFmtStereo && dstChans == DevFmtMono))) return nullptr; - - return ChannelConverterPtr{new ChannelConverter{srcType, srcChans, dstChans}}; + return al::make_unique(srcType, srcChans, dstChans); } void ChannelConverter::convert(const ALvoid *src, ALfloat *dst, ALsizei frames) const