diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/converter.cpp | 3 |
1 files changed, 1 insertions, 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<ChannelConverter>(srcType, srcChans, dstChans); } void ChannelConverter::convert(const ALvoid *src, ALfloat *dst, ALsizei frames) const |