aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alcmain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-11-03 00:30:33 -0700
committerChris Robinson <[email protected]>2019-11-03 00:30:33 -0700
commitd2608e4bde41b3005a06346bea99bbe06404ef22 (patch)
treeb57b085c64bff88056b07437c41ddf6e09d7d9de /alc/alcmain.h
parent2741a94e58ed2f9a17d05fd2499e1a3ea4ac43e8 (diff)
Avoid holding HRTF accumulation samples per-source
It notably simplifies things to mix HRTF sources into an accumulation buffer together, which the Dry buffer's Ambisonic-to-HRTF decode is then added to, before being mixed to the Real output.
Diffstat (limited to 'alc/alcmain.h')
-rw-r--r--alc/alcmain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/alc/alcmain.h b/alc/alcmain.h
index c26b3a28..30c5b835 100644
--- a/alc/alcmain.h
+++ b/alc/alcmain.h
@@ -277,6 +277,8 @@ struct ALCdevice : public al::intrusive_ref<ALCdevice> {
alignas(16) ALfloat HrtfSourceData[BUFFERSIZE + HRTF_HISTORY_LENGTH];
alignas(16) ALfloat NfcSampleData[BUFFERSIZE];
};
+
+ /* Persistent storage for HRTF mixing. */
alignas(16) float2 HrtfAccumData[BUFFERSIZE + HRIR_LENGTH];
/* Mixing buffer used by the Dry mix and Real output. */