diff options
author | Chris Robinson <[email protected]> | 2010-11-26 01:21:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-26 01:21:46 -0800 |
commit | 1cb29ece08cc6b43bb4b93e71d7139fc1cf8c919 (patch) | |
tree | 8bae1eddff34eaee4afb4757abe46df4948bc22c /OpenAL32 | |
parent | de8b7fbc5fa76327bba59a620fa2c6d946d226db (diff) |
Make a FRACTIONONE macro, and use it
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 4c05b733..05055bd1 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -78,7 +78,8 @@ typedef enum { #define BUFFERSIZE 8192 #define FRACTIONBITS (14) -#define FRACTIONMASK ((1<<FRACTIONBITS)-1) +#define FRACTIONONE (1<<FRACTIONBITS) +#define FRACTIONMASK (FRACTIONONE-1) #define MAX_PITCH (INT_MAX & ~FRACTIONMASK) /* NOTE: The AL_FORMAT_REAR* enums aren't handled here because they're |