diff options
author | Chris Robinson <[email protected]> | 2011-11-01 16:00:47 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-11-01 16:00:47 -0700 |
commit | d270188578820777a97e034fcba1f590de4dbb95 (patch) | |
tree | 03161c76e3c13761926244534480d39eff57d5bf | |
parent | fcf9034c2bb9945a69f5cdb9c5a24ad199800552 (diff) |
Append _SOFT to the ALC loopback format enums
-rw-r--r-- | Alc/ALc.c | 52 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 50 |
2 files changed, 51 insertions, 51 deletions
@@ -291,21 +291,21 @@ static const ALCenums enumeration[] = { { "ALC_FORMAT_TYPE_SOFT", ALC_FORMAT_TYPE_SOFT }, // Buffer Channel Configurations - { "ALC_MONO", ALC_MONO }, - { "ALC_STEREO", ALC_STEREO }, - { "ALC_QUAD", ALC_QUAD }, - { "ALC_5POINT1", ALC_5POINT1 }, - { "ALC_6POINT1", ALC_6POINT1 }, - { "ALC_7POINT1", ALC_7POINT1 }, + { "ALC_MONO_SOFT", ALC_MONO_SOFT }, + { "ALC_STEREO_SOFT", ALC_STEREO_SOFT }, + { "ALC_QUAD_SOFT", ALC_QUAD_SOFT }, + { "ALC_5POINT1_SOFT", ALC_5POINT1_SOFT }, + { "ALC_6POINT1_SOFT", ALC_6POINT1_SOFT }, + { "ALC_7POINT1_SOFT", ALC_7POINT1_SOFT }, // Buffer Sample Types - { "ALC_BYTE", ALC_BYTE }, - { "ALC_UNSIGNED_BYTE", ALC_UNSIGNED_BYTE }, - { "ALC_SHORT", ALC_SHORT }, - { "ALC_UNSIGNED_SHORT", ALC_UNSIGNED_SHORT }, - { "ALC_INT", ALC_INT }, - { "ALC_UNSIGNED_INT", ALC_UNSIGNED_INT }, - { "ALC_FLOAT", ALC_FLOAT }, + { "ALC_BYTE_SOFT", ALC_BYTE_SOFT }, + { "ALC_UNSIGNED_BYTE_SOFT", ALC_UNSIGNED_BYTE_SOFT }, + { "ALC_SHORT_SOFT", ALC_SHORT_SOFT }, + { "ALC_UNSIGNED_SHORT_SOFT", ALC_UNSIGNED_SHORT_SOFT }, + { "ALC_INT_SOFT", ALC_INT_SOFT }, + { "ALC_UNSIGNED_INT_SOFT", ALC_UNSIGNED_INT_SOFT }, + { "ALC_FLOAT_SOFT", ALC_FLOAT_SOFT }, // ALC Error Message { "ALC_NO_ERROR", ALC_NO_ERROR }, @@ -960,13 +960,13 @@ static ALCboolean IsValidALCType(ALCenum type) { switch(type) { - case ALC_BYTE: - case ALC_UNSIGNED_BYTE: - case ALC_SHORT: - case ALC_UNSIGNED_SHORT: - case ALC_INT: - case ALC_UNSIGNED_INT: - case ALC_FLOAT: + case ALC_BYTE_SOFT: + case ALC_UNSIGNED_BYTE_SOFT: + case ALC_SHORT_SOFT: + case ALC_UNSIGNED_SHORT_SOFT: + case ALC_INT_SOFT: + case ALC_UNSIGNED_INT_SOFT: + case ALC_FLOAT_SOFT: return ALC_TRUE; } return ALC_FALSE; @@ -976,12 +976,12 @@ static ALCboolean IsValidALCChannels(ALCenum channels) { switch(channels) { - case ALC_MONO: - case ALC_STEREO: - case ALC_QUAD: - case ALC_5POINT1: - case ALC_6POINT1: - case ALC_7POINT1: + case ALC_MONO_SOFT: + case ALC_STEREO_SOFT: + case ALC_QUAD_SOFT: + case ALC_5POINT1_SOFT: + case ALC_6POINT1_SOFT: + case ALC_7POINT1_SOFT: return ALC_TRUE; } return ALC_FALSE; diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 8a9e8d59..0d8f14dc 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -23,21 +23,21 @@ #define ALC_FORMAT_TYPE_SOFT 0x1991 /* Sample types */ -#define ALC_BYTE 0x1400 -#define ALC_UNSIGNED_BYTE 0x1401 -#define ALC_SHORT 0x1402 -#define ALC_UNSIGNED_SHORT 0x1403 -#define ALC_INT 0x1404 -#define ALC_UNSIGNED_INT 0x1405 -#define ALC_FLOAT 0x1406 +#define ALC_BYTE_SOFT 0x1400 +#define ALC_UNSIGNED_BYTE_SOFT 0x1401 +#define ALC_SHORT_SOFT 0x1402 +#define ALC_UNSIGNED_SHORT_SOFT 0x1403 +#define ALC_INT_SOFT 0x1404 +#define ALC_UNSIGNED_INT_SOFT 0x1405 +#define ALC_FLOAT_SOFT 0x1406 /* Channel configurations */ -#define ALC_MONO 0x1500 -#define ALC_STEREO 0x1501 -#define ALC_QUAD 0x1503 -#define ALC_5POINT1 0x1504 /* (WFX order) */ -#define ALC_6POINT1 0x1505 /* (WFX order) */ -#define ALC_7POINT1 0x1506 /* (WFX order) */ +#define ALC_MONO_SOFT 0x1500 +#define ALC_STEREO_SOFT 0x1501 +#define ALC_QUAD_SOFT 0x1503 +#define ALC_5POINT1_SOFT 0x1504 /* (WFX order) */ +#define ALC_6POINT1_SOFT 0x1505 /* (WFX order) */ +#define ALC_7POINT1_SOFT 0x1506 /* (WFX order) */ typedef ALCdevice* (ALC_APIENTRY*LPALCLOOPBACKOPENDEVICESOFT)(void); typedef ALCboolean (ALC_APIENTRY*LPALCISRENDERFORMATSUPPORTEDSOFT)(ALCdevice *device, ALCsizei freq, ALCenum channels, ALCenum type); @@ -574,22 +574,22 @@ void alc_loopback_probe(enum DevProbe type); /* Device formats */ enum DevFmtType { - DevFmtByte = ALC_BYTE, - DevFmtUByte = ALC_UNSIGNED_BYTE, - DevFmtShort = ALC_SHORT, - DevFmtUShort = ALC_UNSIGNED_SHORT, - DevFmtFloat = ALC_FLOAT + DevFmtByte = ALC_BYTE_SOFT, + DevFmtUByte = ALC_UNSIGNED_BYTE_SOFT, + DevFmtShort = ALC_SHORT_SOFT, + DevFmtUShort = ALC_UNSIGNED_SHORT_SOFT, + DevFmtFloat = ALC_FLOAT_SOFT }; enum DevFmtChannels { - DevFmtMono = ALC_MONO, - DevFmtStereo = ALC_STEREO, - DevFmtQuad = ALC_QUAD, - DevFmtX51 = ALC_5POINT1, - DevFmtX61 = ALC_6POINT1, - DevFmtX71 = ALC_7POINT1, + DevFmtMono = ALC_MONO_SOFT, + DevFmtStereo = ALC_STEREO_SOFT, + DevFmtQuad = ALC_QUAD_SOFT, + DevFmtX51 = ALC_5POINT1_SOFT, + DevFmtX61 = ALC_6POINT1_SOFT, + DevFmtX71 = ALC_7POINT1_SOFT, /* Similar to 5.1, except using the side channels instead of back */ - DevFmtX51Side = 0x80000000 | ALC_5POINT1 + DevFmtX51Side = 0x80000000 | ALC_5POINT1_SOFT }; ALuint BytesFromDevFmt(enum DevFmtType type); |