aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-01-31 03:43:52 -0800
committerChris Robinson <[email protected]>2012-01-31 03:43:52 -0800
commit0107e74986edf8e184921ddf853a31d1f9e61dee (patch)
treec01d9dc794acb658d7c9f9980c58f4f9e0a8b7d7
parentc605e06e07a8d7ec6af67f72709d5ab8a3760be0 (diff)
Use an enum for static const values
-rw-r--r--Alc/ALc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index acb11733..7a14f158 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1059,10 +1059,12 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
// Check for attributes
if(attrList && attrList[0])
{
- static const ALCint GotFreq = 1<<0;
- static const ALCint GotChans = 1<<1;
- static const ALCint GotType = 1<<2;
- static const ALCint GotAll = GotFreq|GotChans|GotType;
+ enum {
+ GotFreq = 1<<0,
+ GotChans = 1<<1,
+ GotType = 1<<2,
+ GotAll = GotFreq|GotChans|GotType
+ };
ALCuint freq, numMono, numStereo, numSends;
enum DevFmtChannels schans;
enum DevFmtType stype;