From ac51c9cce67dcaa968f527e54c48f20d54117c76 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 31 Oct 2014 17:18:45 -0700 Subject: Add preliminary AL_EXT_BFORMAT support Currently missing the AL_ORIENTATION source property. Gain stepping also does not work. --- OpenAL32/Include/alu.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenAL32/Include/alu.h') diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index fb16d143..0bf252f5 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -217,6 +217,14 @@ void ComputeDirectionalGains(const ALCdevice *device, const ALfloat dir[3], ALfl */ void ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat elevation, ALfloat ingain, ALfloat gains[MaxChannels]); +/** + * ComputeBFormatGains + * + * Sets channel gains for a given (first-order) B-Format channel. The channel + * number must not be greater than 4, and the resulting gains may be negative. + */ +void ComputeBFormatGains(const ALCdevice *device, ALuint channum, ALfloat ingain, ALfloat gains[MaxChannels]); + /** * SetGains * -- cgit v1.2.3