diff options
author | Chris Robinson <[email protected]> | 2009-01-24 10:38:04 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-01-24 10:38:04 -0800 |
commit | 778b74cae10e8798e85cffb58a452c7677175778 (patch) | |
tree | 73a451bec2de951ab1024daac6f582a40ef34333 /OpenAL32/Include/alMain.h | |
parent | 43ee1edd972d528233475f5239690cd2c3efb04c (diff) |
Reimplement panning using lookup tables, based on a patch by Christian Borss
This allows speaker positions to be specified by discrete angles around the
listener, providing more flexibility and configurability in placement.
Additional patches to take advantage of this are forthcoming.
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 042ab779..de53b072 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -129,6 +129,9 @@ extern char _alDebug[256]; #define LOWPASSFREQCUTOFF (5000) +#define QUADRANT_NUM 128 +#define LUT_NUM (4 * QUADRANT_NUM) + typedef struct { ALCboolean (*OpenPlayback)(ALCdevice*, const ALCchar*); @@ -206,6 +209,9 @@ struct ALCcontext_struct ALint lNumMonoSources; ALint lNumStereoSources; + ALfloat PanningLUT[OUTPUTCHANNELS * LUT_NUM]; + ALint NumChan; + ALCdevice *Device; const ALCchar *ExtensionList; |