aboutsummaryrefslogtreecommitdiffstats
path: root/core/voice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-07 13:09:12 -0700
committerChris Robinson <[email protected]>2022-08-07 13:09:12 -0700
commit250f1624964c2c53e00d18fd1ec2bbc77c860298 (patch)
treec126c955a8871031d5da6d3c79fa4e7d380cc3e1 /core/voice.cpp
parentb77a556d7b7d1a66db4dcde0b77ea5d704254c13 (diff)
Parameterize the UHJ filter length
Diffstat (limited to 'core/voice.cpp')
-rw-r--r--core/voice.cpp20
1 files changed, 10 insertions, 10 deletions
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<UhjStereoDecoder>();
- mDecoderPadding = UhjStereoDecoder::sFilterDelay;
+ mDecoder = std::make_unique<UhjStereoDecoder<UhjLengthStd>>();
+ mDecoderPadding = UhjStereoDecoder<UhjLengthStd>::sFilterDelay;
}
else if(IsUHJ(mFmtChannels))
{
- mDecoder = std::make_unique<UhjDecoder>();
- mDecoderPadding = UhjDecoder::sFilterDelay;
+ mDecoder = std::make_unique<UhjDecoder<UhjLengthStd>>();
+ mDecoderPadding = UhjDecoder<UhjLengthStd>::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<UhjLengthStd>::sWLFScale;
+ mChans[1].mAmbiLFScale = UhjDecoder<UhjLengthStd>::sXYLFScale;
+ mChans[2].mAmbiLFScale = UhjDecoder<UhjLengthStd>::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<UhjLengthStd>::sWLFScale;
+ mChans[1].mAmbiLFScale = UhjDecoder<UhjLengthStd>::sXYLFScale;
+ mChans[2].mAmbiLFScale = UhjDecoder<UhjLengthStd>::sXYLFScale;
mFlags.set(VoiceIsAmbisonic);
}
else