From 5de7271bcd4df9a26301a37ed9cf76ddc6641328 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Jul 2014 04:25:37 -0700 Subject: AL_SOFT_source_length is complete --- Alc/ALc.c | 2 +- examples/alffplay.c | 2 +- include/AL/alext.h | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 3b78ce87..b55fda06 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -716,7 +716,7 @@ static const ALchar alExtList[] = "AL_LOKI_quadriphonic AL_SOFT_block_alignment AL_SOFT_buffer_samples " "AL_SOFT_buffer_sub_data AL_SOFT_deferred_updates AL_SOFT_direct_channels " "AL_SOFT_loop_points AL_SOFT_MSADPCM AL_SOFT_source_latency " - "AL_SOFTX_source_length"; + "AL_SOFT_source_length"; static volatile ALCenum LastNullDeviceError = ALC_NO_ERROR; diff --git a/examples/alffplay.c b/examples/alffplay.c index 762582c4..04df6a83 100644 --- a/examples/alffplay.c +++ b/examples/alffplay.c @@ -1336,7 +1336,7 @@ int main(int argc, char *argv[]) return 1; } - if(!alIsExtensionPresent("AL_SOFTX_source_length")) /* FIXME */ + if(!alIsExtensionPresent("AL_SOFT_source_length")) { fprintf(stderr, "Required AL_SOFT_source_length not supported - exiting\n"); return 1; diff --git a/include/AL/alext.h b/include/AL/alext.h index e647d7be..25e59e11 100644 --- a/include/AL/alext.h +++ b/include/AL/alext.h @@ -376,6 +376,13 @@ AL_API ALvoid AL_APIENTRY alProcessUpdatesSOFT(void); #define AL_FORMAT_STEREO_MSADPCM_SOFT 0x1303 #endif +#ifndef AL_SOFT_source_length +#define AL_SOFT_source_length 1 +/*#define AL_BYTE_LENGTH_SOFT 0x2009*/ +/*#define AL_SAMPLE_LENGTH_SOFT 0x200A*/ +/*#define AL_SEC_LENGTH_SOFT 0x200B*/ +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3