aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h4
-rw-r--r--OpenAL32/Include/alSource.h2
-rw-r--r--OpenAL32/Include/alu.h10
3 files changed, 13 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 44f32e0f..26a3bf30 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -464,8 +464,8 @@ struct ALCcontext_struct
ALboolean Suspended;
- ALenum DistanceModel;
- ALboolean SourceDistanceModel;
+ enum DistanceModel DistanceModel;
+ ALboolean SourceDistanceModel;
ALfloat DopplerFactor;
ALfloat DopplerVelocity;
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 7f50f7ef..d6c3793f 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -45,7 +45,7 @@ typedef struct ALsource
ALfloat vOrientation[3];
ALboolean bHeadRelative;
ALboolean bLooping;
- ALenum DistanceModel;
+ enum DistanceModel DistanceModel;
ALboolean VirtualChannels;
enum Resampler Resampler;
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 9ac3b234..dfe600cb 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -94,6 +94,16 @@ enum Channel {
MAXCHANNELS
};
+enum DistanceModel {
+ InverseDistanceClamped = AL_INVERSE_DISTANCE_CLAMPED,
+ LinearDistanceClamped = AL_LINEAR_DISTANCE_CLAMPED,
+ ExponentDistanceClamped = AL_EXPONENT_DISTANCE_CLAMPED,
+ InverseDistance = AL_INVERSE_DISTANCE,
+ LinearDistance = AL_LINEAR_DISTANCE,
+ ExponentDistance = AL_EXPONENT_DISTANCE,
+ DisableDistance = AL_NONE
+};
+
#define BUFFERSIZE 4096
#define FRACTIONBITS (14)