aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-17 20:15:37 -0700
committerChris Robinson <[email protected]>2019-06-17 20:15:37 -0700
commit55785c0a16938fe5148693a59451f698bef4133c (patch)
treeeecf65337fdf96259f38a7377dab20aae2e789ac /Alc
parent5a884572f023e323c73266fd29382c6ccebc275b (diff)
Use al::make_unique for ChannelConverter
Diffstat (limited to 'Alc')
-rw-r--r--Alc/converter.cpp3
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