aboutsummaryrefslogtreecommitdiffstats
path: root/alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-01-15 10:45:08 -0800
committerChris Robinson <[email protected]>2020-01-15 10:45:08 -0800
commit32c9dbd7ff9bae89ddf876590b938d2932fe609f (patch)
treeb80a5f5e88dda580c29ee4a151b29e5c2ecca23d /alc/bformatdec.h
parent6a8c6eae6f72a31bca2a04e94bc3bc16e10a83be (diff)
Avoid an extraneous index map
Diffstat (limited to 'alc/bformatdec.h')
-rw-r--r--alc/bformatdec.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/alc/bformatdec.h b/alc/bformatdec.h
index 980c907a..63f8c516 100644
--- a/alc/bformatdec.h
+++ b/alc/bformatdec.h
@@ -43,8 +43,7 @@ class BFormatDec {
public:
BFormatDec(const AmbDecConf *conf, const bool allow_2band, const ALuint inchans,
const ALuint srate, const ALuint (&chanmap)[MAX_OUTPUT_CHANNELS]);
- BFormatDec(const ALuint inchans, const ChannelDec (&chancoeffs)[MAX_OUTPUT_CHANNELS],
- const al::span<const ALuint> chanmap);
+ BFormatDec(const ALuint inchans, const al::span<const ChannelDec> chancoeffs);
/* Decodes the ambisonic input to the given output channels. */
void process(const al::span<FloatBufferLine> OutBuffer, const FloatBufferLine *InSamples,
@@ -61,10 +60,9 @@ public:
BFormatDec{conf, allow_2band, inchans, srate, chanmap}};
}
static std::unique_ptr<BFormatDec> Create(const ALuint inchans,
- const ChannelDec (&chancoeffs)[MAX_OUTPUT_CHANNELS], const al::span<const ALuint> chanmap)
+ const al::span<const ChannelDec> chancoeffs)
{
- return std::unique_ptr<BFormatDec>{new(FamCount{inchans})
- BFormatDec{inchans, chancoeffs, chanmap}};
+ return std::unique_ptr<BFormatDec>{new(FamCount{inchans}) BFormatDec{inchans, chancoeffs}};
}
DEF_FAM_NEWDEL(BFormatDec, mChannelDec)