diff options
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 1 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index a658227b..62bb0328 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -656,6 +656,7 @@ struct ALCdevice_struct struct { enum Channel ChanName; ALfloat Angle; + ALfloat Elevation; ALfloat Coeff[MAX_AMBI_COEFFS]; } Speaker[MaxChannels]; ALuint NumSpeakers; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index bf5de4fe..fb16d143 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -204,18 +204,18 @@ 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. + * Sets channel gains based on a 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 - * angle and hwidth parameters are in radians. + * Sets channel gains based on angle and elevation. The angle and elevation + * parameters are in radians, going right and up respectively. */ -void ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat hwidth, ALfloat ingain, ALfloat gains[MaxChannels]); +void ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat elevation, ALfloat ingain, ALfloat gains[MaxChannels]); /** * SetGains |