diff options
author | Chris Robinson <[email protected]> | 2019-06-17 20:15:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-17 20:15:37 -0700 |
commit | 55785c0a16938fe5148693a59451f698bef4133c (patch) | |
tree | eecf65337fdf96259f38a7377dab20aae2e789ac /Alc/converter.cpp | |
parent | 5a884572f023e323c73266fd29382c6ccebc275b (diff) |
Use al::make_unique for ChannelConverter
Diffstat (limited to 'Alc/converter.cpp')
-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 |