From 25f7c2704382221c9d563a7c1e57c02252eb3dad Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 18 Sep 2011 09:52:40 -0700 Subject: Store the HRTF tables used in the device --- OpenAL32/Include/alMain.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 40b90383..a5a96e81 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -384,6 +384,9 @@ extern "C" { #define LOWPASSFREQCUTOFF (5000) +struct Hrtf; + + // Find the next power-of-2 for non-power-of-2 numbers. static __inline ALuint NextPowerOf2(ALuint value) { @@ -549,6 +552,9 @@ struct ALCdevice_struct // Map of Filters for this device UIntMap FilterMap; + /* HRTF filter tables */ + const struct Hrtf *Hrtf; + // Stereo-to-binaural filter struct bs2b *Bs2b; ALCint Bs2bLevel; @@ -679,10 +685,10 @@ const ALCchar *DevFmtChannelsString(enum DevFmtChannels chans); #define HRIR_LENGTH (1<