aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-12 13:52:14 -0800
committerChris Robinson <[email protected]>2020-12-12 13:52:14 -0800
commit176bc8a8354fe3b79c6a109d61c1e3e79898dfe6 (patch)
tree693ee820a36795c9a41bc2765db183736e441168 /alc/hrtf.h
parent191fe888b4bf55aac539315c75ed7f6d15f2ea7e (diff)
Avoid passing DirectHrtfState to MixDirectHrtf
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r--alc/hrtf.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/alc/hrtf.h b/alc/hrtf.h
index 025bfa92..e0e406dc 100644
--- a/alc/hrtf.h
+++ b/alc/hrtf.h
@@ -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} { }
/**