From 369f52a0d76e1be1407441ca0bb67343cffa95f3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 22 Sep 2017 05:42:04 -0700 Subject: Add an option to ignore the app's speed of sound for reverb decay --- OpenAL32/Include/alListener.h | 3 ++- OpenAL32/Include/alu.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h index f1a92b0d..eb386f7f 100644 --- a/OpenAL32/Include/alListener.h +++ b/OpenAL32/Include/alListener.h @@ -50,7 +50,8 @@ typedef struct ALlistener { ALfloat MetersPerUnit; ALfloat DopplerFactor; - ALfloat SpeedOfSound; + ALfloat SpeedOfSound; /* in units per sec! */ + ALfloat ReverbSpeedOfSound; /* in meters per sec! */ ALboolean SourceDistanceModel; enum DistanceModel DistanceModel; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index b322995b..1295fee3 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -516,6 +516,7 @@ void aluHandleDisconnect(ALCdevice *device); extern ALfloat ConeScale; extern ALfloat ZScale; +extern ALboolean OverrideReverbSpeedOfSound; #ifdef __cplusplus } -- cgit v1.2.3