aboutsummaryrefslogtreecommitdiffstats
path: root/alc/converter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-19 12:15:57 -0700
committerChris Robinson <[email protected]>2020-05-19 12:15:57 -0700
commitc5e90ed6c7878178d92aef372d67ed12d126bfc0 (patch)
treed4761b076ce4b14ed0094dea641fdb75dc7b7e0f /alc/converter.cpp
parent825206bfa2b59ae124cc8fb34c5b668f8a682224 (diff)
Use an enum for FamCount
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r--alc/converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/converter.cpp b/alc/converter.cpp
index 47a3bfce..ead0c2f6 100644
--- a/alc/converter.cpp
+++ b/alc/converter.cpp
@@ -153,7 +153,7 @@ SampleConverterPtr CreateSampleConverter(DevFmtType srcType, DevFmtType dstType,
if(numchans < 1 || srcRate < 1 || dstRate < 1)
return nullptr;
- SampleConverterPtr converter{new (FamCount{numchans}) SampleConverter{numchans}};
+ SampleConverterPtr converter{new(FamCount(numchans)) SampleConverter{numchans}};
converter->mSrcType = srcType;
converter->mDstType = dstType;
converter->mSrcTypeSize = BytesFromDevFmt(srcType);