diff options
author | Chris Robinson <[email protected]> | 2020-12-12 13:52:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-12 13:52:14 -0800 |
commit | 176bc8a8354fe3b79c6a109d61c1e3e79898dfe6 (patch) | |
tree | 693ee820a36795c9a41bc2765db183736e441168 /alc/hrtf.h | |
parent | 191fe888b4bf55aac539315c75ed7f6d15f2ea7e (diff) |
Avoid passing DirectHrtfState to MixDirectHrtf
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r-- | alc/hrtf.h | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -80,19 +80,18 @@ struct AngularPoint { }; #define HRTF_DIRECT_DELAY 192 +struct HrtfChannelState { + std::array<float,HRTF_DIRECT_DELAY> mDelay{}; + BandSplitter mSplitter; + float mHfScale{}; + alignas(16) HrirArray mCoeffs{}; +}; struct DirectHrtfState { - struct ChannelData { - std::array<float,HRTF_DIRECT_DELAY> mDelay{}; - BandSplitter mSplitter; - float mHfScale{}; - alignas(16) HrirArray mCoeffs{}; - }; - std::array<float,HRTF_DIRECT_DELAY+BufferLineSize> mTemp; /* HRTF filter state for dry buffer content */ uint mIrSize{0}; - al::FlexArray<ChannelData> mChannels; + al::FlexArray<HrtfChannelState> mChannels; DirectHrtfState(size_t numchans) : mChannels{numchans} { } /** |