diff options
author | Chris Robinson <[email protected]> | 2009-12-08 14:18:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-08 14:18:07 -0800 |
commit | 84d2d623b644880eb4d677d45e257ffb00f6244c (patch) | |
tree | 67702ebf113415bbc3a95361d122c2b41fdb32f3 /OpenAL32 | |
parent | 1694e5bd12d021169cf6cf541c5a5d0c652c8989 (diff) |
Add a head-dampening option
This simulates occlusion of the player's head for sounds coming from behind,
when outputing to mono or stereo
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 324c18fa..cb290e0c 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -163,6 +163,8 @@ static __inline void al_print(const char *fname, unsigned int line, const char * #define LOWPASSFREQCUTOFF (5000) +#define DEFAULT_HEAD_DAMPEN (0.25f) + // Find the next power-of-2 for non-power-of-2 numbers. static __inline ALuint NextPowerOf2(ALuint value) @@ -269,6 +271,9 @@ struct ALCdevice_struct struct bs2b *Bs2b; ALCint Bs2bLevel; + // Simulated dampening from head occlusion + ALfloat HeadDampen; + // Dry path buffer mix float DryBuffer[BUFFERSIZE][OUTPUTCHANNELS]; |