From 250f1624964c2c53e00d18fd1ec2bbc77c860298 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 7 Aug 2022 13:09:12 -0700 Subject: Parameterize the UHJ filter length --- core/voice.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'core/voice.cpp') diff --git a/core/voice.cpp b/core/voice.cpp index ed6c9bf8..15230726 100644 --- a/core/voice.cpp +++ b/core/voice.cpp @@ -854,13 +854,13 @@ void Voice::prepare(DeviceBase *device) if(mFmtChannels == FmtSuperStereo) { - mDecoder = std::make_unique(); - mDecoderPadding = UhjStereoDecoder::sFilterDelay; + mDecoder = std::make_unique>(); + mDecoderPadding = UhjStereoDecoder::sFilterDelay; } else if(IsUHJ(mFmtChannels)) { - mDecoder = std::make_unique(); - mDecoderPadding = UhjDecoder::sFilterDelay; + mDecoder = std::make_unique>(); + mDecoderPadding = UhjDecoder::sFilterDelay; } else { @@ -908,9 +908,9 @@ void Voice::prepare(DeviceBase *device) */ if(mFmtChannels == FmtUHJ2) { - mChans[0].mAmbiLFScale = UhjDecoder::sWLFScale; - mChans[1].mAmbiLFScale = UhjDecoder::sXYLFScale; - mChans[2].mAmbiLFScale = UhjDecoder::sXYLFScale; + mChans[0].mAmbiLFScale = UhjDecoder::sWLFScale; + mChans[1].mAmbiLFScale = UhjDecoder::sXYLFScale; + mChans[2].mAmbiLFScale = UhjDecoder::sXYLFScale; } mFlags.set(VoiceIsAmbisonic); } @@ -930,9 +930,9 @@ void Voice::prepare(DeviceBase *device) chandata.mDryParams.NFCtrlFilter = device->mNFCtrlFilter; std::fill_n(chandata.mWetParams.begin(), device->NumAuxSends, SendParams{}); } - mChans[0].mAmbiLFScale = UhjDecoder::sWLFScale; - mChans[1].mAmbiLFScale = UhjDecoder::sXYLFScale; - mChans[2].mAmbiLFScale = UhjDecoder::sXYLFScale; + mChans[0].mAmbiLFScale = UhjDecoder::sWLFScale; + mChans[1].mAmbiLFScale = UhjDecoder::sXYLFScale; + mChans[2].mAmbiLFScale = UhjDecoder::sXYLFScale; mFlags.set(VoiceIsAmbisonic); } else -- cgit v1.2.3