aboutsummaryrefslogtreecommitdiffstats
path: root/alc/bformatdec.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-06 14:53:27 -0700
committerChris Robinson <[email protected]>2020-05-06 19:31:31 -0700
commitbef25361f1f43382a751e2ccba124871e25da17b (patch)
treea2598f9b0e7a23c89bd226fadbc97eb3e664e8de /alc/bformatdec.cpp
parentf82fca2c6a051d9dd067e62c9d01a5e0d05480e6 (diff)
Make the built-in decoders more flexible
Diffstat (limited to 'alc/bformatdec.cpp')
-rw-r--r--alc/bformatdec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/bformatdec.cpp b/alc/bformatdec.cpp
index 458a5bb7..36adf005 100644
--- a/alc/bformatdec.cpp
+++ b/alc/bformatdec.cpp
@@ -49,7 +49,7 @@ inline auto GetAmbiScales(AmbDecScale scaletype) noexcept
} // namespace
-BFormatDec::BFormatDec(const AmbDecConf *conf, const bool allow_2band, const ALuint inchans,
+BFormatDec::BFormatDec(const AmbDecConf *conf, const bool allow_2band, const size_t inchans,
const ALuint srate, const ALuint (&chanmap)[MAX_OUTPUT_CHANNELS]) : mChannelDec{inchans}
{
mDualBand = allow_2band && (conf->FreqBands == 2);
@@ -98,7 +98,7 @@ BFormatDec::BFormatDec(const AmbDecConf *conf, const bool allow_2band, const ALu
}
}
-BFormatDec::BFormatDec(const ALuint inchans, const al::span<const ChannelDec> chancoeffs)
+BFormatDec::BFormatDec(const size_t inchans, const al::span<const ChannelDec> chancoeffs)
: mChannelDec{inchans}
{
for(size_t j{0};j < mChannelDec.size();++j)