Finalize the loop points extension as AL_SOFT_loop_points
This commit is contained in:
@@ -357,9 +357,9 @@ static ALCenum g_eLastNullDeviceError = ALC_NO_ERROR;
|
||||
// Default context extensions
|
||||
static const ALchar alExtList[] =
|
||||
"AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 "
|
||||
"AL_EXT_LINEAR_DISTANCE AL_EXTX_loop_points AL_EXT_MCFORMATS AL_EXT_MULAW "
|
||||
"AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW "
|
||||
"AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model "
|
||||
"AL_LOKI_quadriphonic AL_SOFT_buffer_sub_data";
|
||||
"AL_LOKI_quadriphonic AL_SOFT_buffer_sub_data AL_SOFT_loop_points";
|
||||
|
||||
// Mixing Priority Level
|
||||
static ALint RTPrioLevel;
|
||||
|
||||
@@ -69,11 +69,6 @@ AL_API ALvoid AL_APIENTRY alUnmapDatabufferEXT(ALuint uiBuffer);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef AL_EXT_loop_points
|
||||
#define AL_EXT_loop_points 1
|
||||
#define AL_LOOP_POINTS 0x2015
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(HAVE_STDINT_H)
|
||||
#include <stdint.h>
|
||||
|
||||
+2
-2
@@ -607,7 +607,7 @@ AL_API void AL_APIENTRY alBufferiv(ALuint buffer, ALenum eParam, const ALint* pl
|
||||
{
|
||||
switch(eParam)
|
||||
{
|
||||
case AL_LOOP_POINTS:
|
||||
case AL_LOOP_POINTS_SOFT:
|
||||
if(ALBuf->refcount > 0)
|
||||
alSetError(pContext, AL_INVALID_OPERATION);
|
||||
else if(plValues[0] < 0 || plValues[1] < 0 ||
|
||||
@@ -814,7 +814,7 @@ AL_API void AL_APIENTRY alGetBufferiv(ALuint buffer, ALenum eParam, ALint* plVal
|
||||
alGetBufferi(buffer, eParam, plValues);
|
||||
break;
|
||||
|
||||
case AL_LOOP_POINTS:
|
||||
case AL_LOOP_POINTS_SOFT:
|
||||
plValues[0] = ALBuf->LoopStart;
|
||||
plValues[1] = ALBuf->LoopEnd;
|
||||
break;
|
||||
|
||||
@@ -153,6 +153,11 @@ AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef AL_SOFT_loop_points
|
||||
#define AL_SOFT_loop_points 1
|
||||
#define AL_LOOP_POINTS_SOFT 0x2015
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user