aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-19 19:28:23 -0800
committerChris Robinson <[email protected]>2018-01-19 19:28:23 -0800
commit940c6146e832b2226876f3d8fdc3369974ed16e9 (patch)
tree8c2451248d0c3f3b48de958776e267e8b1cdb80b
parentb56673bbce948b7ea6a79261934abc940119a20a (diff)
Remove unnecessary private AL_SOFT_buffer_samples2 definitions
-rw-r--r--Alc/ALc.c9
-rw-r--r--OpenAL32/Include/alBuffer.h8
-rw-r--r--OpenAL32/Include/alMain.h73
-rw-r--r--OpenAL32/alBuffer.c3
4 files changed, 4 insertions, 89 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 71db5e0f..9a494c36 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -493,12 +493,6 @@ static const struct {
DECL(AL_7POINT1_8_SOFT),
DECL(AL_7POINT1_16_SOFT),
DECL(AL_7POINT1_32F_SOFT),
- DECL(AL_BFORMAT2D_8_SOFT),
- DECL(AL_BFORMAT2D_16_SOFT),
- DECL(AL_BFORMAT2D_32F_SOFT),
- DECL(AL_BFORMAT3D_8_SOFT),
- DECL(AL_BFORMAT3D_16_SOFT),
- DECL(AL_BFORMAT3D_32F_SOFT),
DECL(AL_MONO_SOFT),
DECL(AL_STEREO_SOFT),
@@ -507,8 +501,6 @@ static const struct {
DECL(AL_5POINT1_SOFT),
DECL(AL_6POINT1_SOFT),
DECL(AL_7POINT1_SOFT),
- DECL(AL_BFORMAT2D_SOFT),
- DECL(AL_BFORMAT3D_SOFT),
DECL(AL_BYTE_SOFT),
DECL(AL_UNSIGNED_BYTE_SOFT),
@@ -520,7 +512,6 @@ static const struct {
DECL(AL_DOUBLE_SOFT),
DECL(AL_BYTE3_SOFT),
DECL(AL_UNSIGNED_BYTE3_SOFT),
- DECL(AL_MULAW_SOFT),
DECL(AL_FREQUENCY),
DECL(AL_BITS),
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h
index 5abee8c6..0f39dfae 100644
--- a/OpenAL32/Include/alBuffer.h
+++ b/OpenAL32/Include/alBuffer.h
@@ -17,8 +17,8 @@ enum UserFmtType {
UserFmtUInt = AL_UNSIGNED_INT_SOFT,
UserFmtFloat = AL_FLOAT_SOFT,
UserFmtDouble = AL_DOUBLE_SOFT,
- UserFmtMulaw = AL_MULAW_SOFT,
- UserFmtAlaw = 0x10000000,
+ UserFmtMulaw = 0x10000000,
+ UserFmtAlaw,
UserFmtIMA4,
UserFmtMSADPCM,
};
@@ -30,8 +30,8 @@ enum UserFmtChannels {
UserFmtX51 = AL_5POINT1_SOFT, /* (WFX order) */
UserFmtX61 = AL_6POINT1_SOFT, /* (WFX order) */
UserFmtX71 = AL_7POINT1_SOFT, /* (WFX order) */
- UserFmtBFormat2D = AL_BFORMAT2D_SOFT, /* WXY */
- UserFmtBFormat3D = AL_BFORMAT3D_SOFT, /* WXYZ */
+ UserFmtBFormat2D = 0x20000000, /* WXY */
+ UserFmtBFormat3D, /* WXYZ */
};
ALsizei BytesFromUserFmt(enum UserFmtType type);
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index c9439770..50c9decf 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -47,79 +47,6 @@
#define ALC_N3D_SOFT 0xfff7
#endif
-#ifndef AL_SOFT_buffer_samples2
-#define AL_SOFT_buffer_samples2 1
-/* Channel configurations */
-#define AL_MONO_SOFT 0x1500
-#define AL_STEREO_SOFT 0x1501
-#define AL_REAR_SOFT 0x1502
-#define AL_QUAD_SOFT 0x1503
-#define AL_5POINT1_SOFT 0x1504
-#define AL_6POINT1_SOFT 0x1505
-#define AL_7POINT1_SOFT 0x1506
-#define AL_BFORMAT2D_SOFT 0x1507
-#define AL_BFORMAT3D_SOFT 0x1508
-
-/* Sample types */
-#define AL_BYTE_SOFT 0x1400
-#define AL_UNSIGNED_BYTE_SOFT 0x1401
-#define AL_SHORT_SOFT 0x1402
-#define AL_UNSIGNED_SHORT_SOFT 0x1403
-#define AL_INT_SOFT 0x1404
-#define AL_UNSIGNED_INT_SOFT 0x1405
-#define AL_FLOAT_SOFT 0x1406
-#define AL_DOUBLE_SOFT 0x1407
-#define AL_BYTE3_SOFT 0x1408
-#define AL_UNSIGNED_BYTE3_SOFT 0x1409
-#define AL_MULAW_SOFT 0x140A
-
-/* Storage formats */
-#define AL_MONO8_SOFT 0x1100
-#define AL_MONO16_SOFT 0x1101
-#define AL_MONO32F_SOFT 0x10010
-#define AL_STEREO8_SOFT 0x1102
-#define AL_STEREO16_SOFT 0x1103
-#define AL_STEREO32F_SOFT 0x10011
-#define AL_QUAD8_SOFT 0x1204
-#define AL_QUAD16_SOFT 0x1205
-#define AL_QUAD32F_SOFT 0x1206
-#define AL_REAR8_SOFT 0x1207
-#define AL_REAR16_SOFT 0x1208
-#define AL_REAR32F_SOFT 0x1209
-#define AL_5POINT1_8_SOFT 0x120A
-#define AL_5POINT1_16_SOFT 0x120B
-#define AL_5POINT1_32F_SOFT 0x120C
-#define AL_6POINT1_8_SOFT 0x120D
-#define AL_6POINT1_16_SOFT 0x120E
-#define AL_6POINT1_32F_SOFT 0x120F
-#define AL_7POINT1_8_SOFT 0x1210
-#define AL_7POINT1_16_SOFT 0x1211
-#define AL_7POINT1_32F_SOFT 0x1212
-#define AL_BFORMAT2D_8_SOFT 0x20021
-#define AL_BFORMAT2D_16_SOFT 0x20022
-#define AL_BFORMAT2D_32F_SOFT 0x20023
-#define AL_BFORMAT3D_8_SOFT 0x20031
-#define AL_BFORMAT3D_16_SOFT 0x20032
-#define AL_BFORMAT3D_32F_SOFT 0x20033
-
-/* Buffer attributes */
-#define AL_INTERNAL_FORMAT_SOFT 0x2008
-#define AL_BYTE_LENGTH_SOFT 0x2009
-#define AL_SAMPLE_LENGTH_SOFT 0x200A
-#define AL_SEC_LENGTH_SOFT 0x200B
-
-#if 0
-typedef void (AL_APIENTRY*LPALBUFFERSAMPLESSOFT)(ALuint,ALuint,ALenum,ALsizei,ALenum,ALenum,const ALvoid*);
-typedef void (AL_APIENTRY*LPALGETBUFFERSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,ALvoid*);
-typedef ALboolean (AL_APIENTRY*LPALISBUFFERFORMATSUPPORTEDSOFT)(ALenum);
-#ifdef AL_ALEXT_PROTOTYPES
-AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint buffer, ALuint samplerate, ALenum internalformat, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data);
-AL_API void AL_APIENTRY alGetBufferSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, ALvoid *data);
-AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format);
-#endif
-#endif
-#endif
-
#if defined(_WIN64)
#define SZFMT "%I64u"
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index de49d948..1b15a1b3 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -1316,7 +1316,6 @@ static ALboolean IsValidType(ALenum type)
case AL_UNSIGNED_INT_SOFT:
case AL_FLOAT_SOFT:
case AL_DOUBLE_SOFT:
- case AL_MULAW_SOFT:
return AL_TRUE;
}
return AL_FALSE;
@@ -1333,8 +1332,6 @@ static ALboolean IsValidChannels(ALenum channels)
case AL_5POINT1_SOFT:
case AL_6POINT1_SOFT:
case AL_7POINT1_SOFT:
- case AL_BFORMAT2D_SOFT:
- case AL_BFORMAT3D_SOFT:
return AL_TRUE;
}
return AL_FALSE;