aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-20 13:37:43 -0800
committerChris Robinson <[email protected]>2018-01-20 13:37:43 -0800
commitc2c38469304b15a5fa91282084ffe3aea9e97588 (patch)
treeb099a0d2a5a7dcf8609f8f86014c714022db58a9 /Alc/ALc.c
parent03d4e4acc4c55ed87741b2b9960ac1ac3d4cf0bd (diff)
Expose a preliminary AL_SOFT_map_buffer extension for testing
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c41
1 files changed, 33 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 9a494c36..fb345b08 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -286,6 +286,9 @@ static const struct {
DECL(alIsBufferFormatSupportedSOFT),
DECL(alGetStringiSOFT),
+
+ DECL(alMapBufferSOFT),
+ DECL(alUnmapBufferSOFT),
};
#undef DECL
@@ -692,6 +695,9 @@ static const struct {
DECL(AL_SOURCE_SPATIALIZE_SOFT),
DECL(AL_AUTO_SOFT),
+
+ DECL(AL_MAP_READ_BIT_SOFT),
+ DECL(AL_MAP_WRITE_BIT_SOFT),
};
#undef DECL
@@ -719,14 +725,33 @@ static ALCchar *alcCaptureDefaultDeviceSpecifier;
/* Default context extensions */
static const ALchar alExtList[] =
- "AL_EXT_ALAW AL_EXT_BFORMAT AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE "
- "AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS "
- "AL_EXT_MULAW AL_EXT_MULAW_BFORMAT AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET "
- "AL_EXT_source_distance_model AL_EXT_SOURCE_RADIUS AL_EXT_STEREO_ANGLES "
- "AL_LOKI_quadriphonic AL_SOFT_block_alignment AL_SOFT_deferred_updates "
- "AL_SOFT_direct_channels AL_SOFT_gain_clamp_ex AL_SOFT_loop_points "
- "AL_SOFT_MSADPCM AL_SOFT_source_latency AL_SOFT_source_length "
- "AL_SOFT_source_resampler AL_SOFT_source_spatialize";
+ "AL_EXT_ALAW "
+ "AL_EXT_BFORMAT "
+ "AL_EXT_DOUBLE "
+ "AL_EXT_EXPONENT_DISTANCE "
+ "AL_EXT_FLOAT32 "
+ "AL_EXT_IMA4 "
+ "AL_EXT_LINEAR_DISTANCE "
+ "AL_EXT_MCFORMATS "
+ "AL_EXT_MULAW "
+ "AL_EXT_MULAW_BFORMAT "
+ "AL_EXT_MULAW_MCFORMATS "
+ "AL_EXT_OFFSET "
+ "AL_EXT_source_distance_model "
+ "AL_EXT_SOURCE_RADIUS "
+ "AL_EXT_STEREO_ANGLES "
+ "AL_LOKI_quadriphonic "
+ "AL_SOFT_block_alignment "
+ "AL_SOFT_deferred_updates "
+ "AL_SOFT_direct_channels "
+ "AL_SOFT_gain_clamp_ex "
+ "AL_SOFT_loop_points "
+ "AL_SOFTX_map_buffer "
+ "AL_SOFT_MSADPCM "
+ "AL_SOFT_source_latency "
+ "AL_SOFT_source_length "
+ "AL_SOFT_source_resampler "
+ "AL_SOFT_source_spatialize";
static ATOMIC(ALCenum) LastNullDeviceError = ATOMIC_INIT_STATIC(ALC_NO_ERROR);