Add a source radius property that determines the directionality of a sound
commitf4cdecebcf043758d51885fdb0f84497476b6d96
authorChris Robinson <chris.kcat@gmail.com>
Tue, 8 Jul 2014 16:13:35 +0000 (8 09:13 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 11 Jul 2014 07:03:13 +0000 (11 00:03 -0700)
tree52ad1f71d77ef03d65ad038427c280ec0dee1ecc
parentc5af088b5ff1f7b5c51dbdcb7327d3f22c1de5df
Add a source radius property that determines the directionality of a sound

At 0 distance from the listener, the sound is omni-directional. As the source
and listener become 'radius' units apart, the sound becomes more directional.

With HRTF, an omni-directional sound is handled using 0-delay, pass-through
filter coefficients, which is blended with the real delay and coefficients as
needed to become more directional.
Alc/ALu.c
Alc/hrtf.c
Alc/hrtf.h
OpenAL32/Include/alSource.h
OpenAL32/alSource.c