aboutsummaryrefslogtreecommitdiffstats
path: root/alc/converter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-13 14:29:25 -0700
committerChris Robinson <[email protected]>2019-09-13 14:29:25 -0700
commita250b6a98639571eedcaaf858d014d22eb008999 (patch)
tree66b20aa2015bab606dcb19381efc39edd7adbdc2 /alc/converter.cpp
parentfcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (diff)
Return unsigned values from the FromDevFmt functions
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r--alc/converter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/alc/converter.cpp b/alc/converter.cpp
index 87a9d275..2913f533 100644
--- a/alc/converter.cpp
+++ b/alc/converter.cpp
@@ -152,8 +152,8 @@ SampleConverterPtr CreateSampleConverter(DevFmtType srcType, DevFmtType dstType,
SampleConverterPtr converter{new (FamCount{numchans}) SampleConverter{numchans}};
converter->mSrcType = srcType;
converter->mDstType = dstType;
- converter->mSrcTypeSize = static_cast<ALuint>(BytesFromDevFmt(srcType));
- converter->mDstTypeSize = static_cast<ALuint>(BytesFromDevFmt(dstType));
+ converter->mSrcTypeSize = BytesFromDevFmt(srcType);
+ converter->mDstTypeSize = BytesFromDevFmt(dstType);
converter->mSrcPrepCount = 0;
converter->mFracOffset = 0;
@@ -360,6 +360,5 @@ void ChannelConverter::convert(const ALvoid *src, ALfloat *dst, ALuint frames) c
}
}
else
- LoadSamples(dst, src, 1u, mSrcType,
- frames*static_cast<ALuint>(ChannelsFromDevFmt(mSrcChans, 0)));
+ LoadSamples(dst, src, 1u, mSrcType, frames * ChannelsFromDevFmt(mSrcChans, 0));
}