aboutsummaryrefslogtreecommitdiffstats
path: root/alc/converter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-10 23:01:33 -0700
committerChris Robinson <[email protected]>2019-09-10 23:01:33 -0700
commit65374dc5d00a2fa64657d4310f7a27c09eaa4c9a (patch)
tree9395affa72e8a0477ec25dc4b5aeaa26fdea09f8 /alc/converter.cpp
parent19e1cd7430a19cb3592b4bd3e737e2a0e4314a91 (diff)
Avoid dynamically allocating ChannelConverter
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r--alc/converter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/alc/converter.cpp b/alc/converter.cpp
index de61415a..7e3c17cc 100644
--- a/alc/converter.cpp
+++ b/alc/converter.cpp
@@ -327,14 +327,6 @@ ALuint SampleConverter::convert(const ALvoid **src, ALuint *srcframes, ALvoid *d
}
-ChannelConverterPtr CreateChannelConverter(DevFmtType srcType, DevFmtChannels srcChans, DevFmtChannels dstChans)
-{
- if(srcChans != dstChans && !((srcChans == DevFmtMono && dstChans == DevFmtStereo) ||
- (srcChans == DevFmtStereo && dstChans == DevFmtMono)))
- return nullptr;
- return al::make_unique<ChannelConverter>(srcType, srcChans, dstChans);
-}
-
void ChannelConverter::convert(const ALvoid *src, ALfloat *dst, ALuint frames) const
{
if(mSrcChans == DevFmtStereo && mDstChans == DevFmtMono)