aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2024-01-02 08:20:10 -0800
committerChris Robinson <[email protected]>2024-01-02 08:20:10 -0800
commit05d2c550d08baf9b6d9e24b48913f7ded8383178 (patch)
treef218ea1623570d21d4624d6d55847f090b676b0b
parent272bbc400df542dbe2ed0fe0d40112318cde0689 (diff)
Avoid assigning to self
-rw-r--r--core/hrtf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/hrtf.cpp b/core/hrtf.cpp
index 80e38709..93a34b3f 100644
--- a/core/hrtf.cpp
+++ b/core/hrtf.cpp
@@ -291,7 +291,8 @@ void DirectHrtfState::build(const HrtfStore *Hrtf, const uint irSize, const bool
const double xover_norm{double{XOverFreq} / Hrtf->mSampleRate};
mChannels[0].mSplitter.init(static_cast<float>(xover_norm));
- for(size_t i{0};i < mChannels.size();++i)
+ mChannels[0].mHfScale = AmbiOrderHFGain[0];
+ for(size_t i{1};i < mChannels.size();++i)
{
const size_t order{AmbiIndex::OrderFromChannel[i]};
mChannels[i].mSplitter = mChannels[0].mSplitter;