diff options
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r-- | OpenAL32/Include/alu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 55d33988..136025d1 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -202,6 +202,14 @@ inline ALfloat cubic(ALfloat val0, ALfloat val1, ALfloat val2, ALfloat val3, ALf ALvoid aluInitPanning(ALCdevice *Device); /** + * ComputeDirectionalGains + * + * Sets channel gains based on the given source's direction. The direction must + * be a 3-component vector no longer than 1 unit. + */ +void ComputeDirectionalGains(const ALCdevice *device, const ALfloat dir[3], ALfloat ingain, ALfloat gains[MaxChannels]); + +/** * ComputeAngleGains * * Sets channel gains based on a given source's angle and its half-width. The |