diff options
author | Chris Robinson <[email protected]> | 2020-05-06 14:53:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-06 19:31:31 -0700 |
commit | bef25361f1f43382a751e2ccba124871e25da17b (patch) | |
tree | a2598f9b0e7a23c89bd226fadbc97eb3e664e8de /alc/bformatdec.cpp | |
parent | f82fca2c6a051d9dd067e62c9d01a5e0d05480e6 (diff) |
Make the built-in decoders more flexible
Diffstat (limited to 'alc/bformatdec.cpp')
-rw-r--r-- | alc/bformatdec.cpp | 4 |
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) |