diff options
author | Chris Robinson <[email protected]> | 2019-01-05 22:31:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-05 22:31:13 -0800 |
commit | 3b91010e21f607196a3927f617164c4fdb68b5e6 (patch) | |
tree | 182d2fec05cffa36b28b748d7ec9b5fd6728a1c4 /Alc/bformatdec.cpp | |
parent | aa29bf593342643906514fc4497a4428ec1828ab (diff) |
Pass the normalized crossover frequency to the reset method
Diffstat (limited to 'Alc/bformatdec.cpp')
-rw-r--r-- | Alc/bformatdec.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Alc/bformatdec.cpp b/Alc/bformatdec.cpp index a7cce89c..0e67b20a 100644 --- a/Alc/bformatdec.cpp +++ b/Alc/bformatdec.cpp @@ -146,7 +146,7 @@ void BFormatDec::reset(const AmbDecConf *conf, bool allow_2band, ALsizei inchans } } -void BFormatDec::reset(ALsizei inchans, ALuint srate, ALsizei chancount, const ChannelDec (&chancoeffs)[MAX_OUTPUT_CHANNELS], const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]) +void BFormatDec::reset(const ALsizei inchans, const ALfloat xover_norm, const ALsizei chancount, const ChannelDec (&chancoeffs)[MAX_OUTPUT_CHANNELS], const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]) { mSamples.clear(); mSamplesHF = nullptr; @@ -162,8 +162,6 @@ void BFormatDec::reset(ALsizei inchans, ALuint srate, ALsizei chancount, const C { return mask | (1 << chan); } ); - const ALfloat xover_norm{400.0f / (float)srate}; - const ALsizei out_order{ (inchans > 7) ? 4 : (inchans > 5) ? 3 : |