aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-16 16:59:20 -0700
committerChris Robinson <[email protected]>2011-07-16 16:59:20 -0700
commit163cc62a00f755e0df5d83f4196178bd85be9bde (patch)
treed1aa0417909420f02a7b7113b3417298f4644e40 /Alc/ALc.c
parent5f566ebf05873aafd54b7613d35d363fbb8943c2 (diff)
Add a couple new functions to handle deferred updates
Currently no-ops, they will be used in place of alcSuspendContext and alcProcessContext for batching updates since the mentioned functions have no coherent functionality between system implementations.
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 1b4bf338..6f165fb9 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -275,6 +275,9 @@ static const ALCfunction alcFunctions[] = {
{ "alGetBufferSamplesSOFT", (ALCvoid *) alGetBufferSamplesSOFT },
{ "alIsBufferFormatSupportedSOFT",(ALCvoid *) alIsBufferFormatSupportedSOFT},
+ { "alDeferUpdatesSOFT", (ALCvoid *) alDeferUpdatesSOFT },
+ { "alProcessUpdatesSOFT", (ALCvoid *) alProcessUpdatesSOFT },
+
{ NULL, (ALCvoid *) NULL }
};
@@ -1539,7 +1542,6 @@ static ALvoid InitContext(ALCcontext *pContext)
//Validate pContext
pContext->LastError = AL_NO_ERROR;
pContext->UpdateSources = AL_FALSE;
- pContext->Suspended = AL_FALSE;
pContext->ActiveSourceCount = 0;
InitUIntMap(&pContext->SourceMap);
InitUIntMap(&pContext->EffectSlotMap);
@@ -1550,6 +1552,7 @@ static ALvoid InitContext(ALCcontext *pContext)
pContext->DopplerFactor = 1.0f;
pContext->DopplerVelocity = 1.0f;
pContext->flSpeedOfSound = SPEEDOFSOUNDMETRESPERSEC;
+ pContext->DeferUpdates = AL_FALSE;
pContext->ExtensionList = alExtList;
}
@@ -1759,12 +1762,9 @@ ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device)
Not functional
*/
-ALC_API ALCvoid ALC_APIENTRY alcSuspendContext(ALCcontext *pContext)
+ALC_API ALCvoid ALC_APIENTRY alcSuspendContext(ALCcontext *Context)
{
- LockLists();
- if(IsContext(pContext))
- pContext->Suspended = AL_TRUE;
- UnlockLists();
+ (void)Context;
}
@@ -1773,12 +1773,9 @@ ALC_API ALCvoid ALC_APIENTRY alcSuspendContext(ALCcontext *pContext)
Not functional
*/
-ALC_API ALCvoid ALC_APIENTRY alcProcessContext(ALCcontext *pContext)
+ALC_API ALCvoid ALC_APIENTRY alcProcessContext(ALCcontext *Context)
{
- LockLists();
- if(IsContext(pContext))
- pContext->Suspended = AL_FALSE;
- UnlockLists();
+ (void)Context;
}