aboutsummaryrefslogtreecommitdiffstats
path: root/alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-07 03:15:46 -0700
committerChris Robinson <[email protected]>2020-05-07 03:15:46 -0700
commit7ed37a82823f46ff59aa42c9812eccb9128d38ac (patch)
tree3eca2259e322935a6ff0a6c158670a4439eb0072 /alc/bformatdec.h
parentfaec0c78eba89e8fa3417e775e438926c837a83e (diff)
Use dual-band for the internal quad and 7.1 decoders
Diffstat (limited to 'alc/bformatdec.h')
-rw-r--r--alc/bformatdec.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/alc/bformatdec.h b/alc/bformatdec.h
index 6568e47f..3d05324d 100644
--- a/alc/bformatdec.h
+++ b/alc/bformatdec.h
@@ -43,7 +43,8 @@ class BFormatDec {
public:
BFormatDec(const AmbDecConf *conf, const bool allow_2band, const size_t inchans,
const ALuint srate, const ALuint (&chanmap)[MAX_OUTPUT_CHANNELS]);
- BFormatDec(const size_t inchans, const al::span<const ChannelDec> chancoeffs);
+ BFormatDec(const size_t inchans, const al::span<const ChannelDec> coeffs,
+ const al::span<const ChannelDec> coeffslf);
/* Decodes the ambisonic input to the given output channels. */
void process(const al::span<FloatBufferLine> OutBuffer, const FloatBufferLine *InSamples,
@@ -60,8 +61,11 @@ public:
BFormatDec{conf, allow_2band, inchans, srate, chanmap}};
}
static std::unique_ptr<BFormatDec> Create(const size_t inchans,
- const al::span<const ChannelDec> chancoeffs)
- { return std::unique_ptr<BFormatDec>{new(FamCount{inchans}) BFormatDec{inchans, chancoeffs}}; }
+ const al::span<const ChannelDec> coeffs, const al::span<const ChannelDec> coeffslf)
+ {
+ return std::unique_ptr<BFormatDec>{new(FamCount{inchans})
+ BFormatDec{inchans, coeffs, coeffslf}};
+ }
DEF_FAM_NEWDEL(BFormatDec, mChannelDec)
};