Rename GetReffedContext to GetContextRef

This commit is contained in:
Chris Robinson 2011-08-30 23:28:38 -07:00
parent a32a3bcda8
commit 9fb91f70aa
9 changed files with 17 additions and 17 deletions

View File

@ -1431,12 +1431,12 @@ ALCcontext *GetLockedContext(void)
}
/*
* GetReffedContext(void)
* GetContextRef
*
* Returns the currently active Context, and add a reference to it without
* Returns the currently active Context, and adds a reference to it without
* locking
*/
ALCcontext *GetReffedContext(void)
ALCcontext *GetContextRef(void)
{
ALCcontext *context;

View File

@ -639,7 +639,7 @@ ALvoid *StartThread(ALuint (*func)(ALvoid*), ALvoid *ptr);
ALuint StopThread(ALvoid *thread);
ALCcontext *GetLockedContext(void);
ALCcontext *GetReffedContext(void);
ALCcontext *GetContextRef(void);
typedef struct RingBuffer RingBuffer;
RingBuffer *CreateRingBuffer(ALsizei frame_size, ALsizei length);

View File

@ -45,7 +45,7 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo
ALCcontext *Context;
ALCdevice *Device;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return;
Device = Context->Device;
@ -123,7 +123,7 @@ AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effect
ALeffectslot *EffectSlot;
ALsizei i;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return;
if(n < 0)
@ -173,7 +173,7 @@ AL_API ALboolean AL_APIENTRY alIsAuxiliaryEffectSlot(ALuint effectslot)
ALCcontext *Context;
ALboolean result;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return AL_FALSE;
result = (LookupEffectSlot(Context->EffectSlotMap, effectslot) ?

View File

@ -265,7 +265,7 @@ AL_API ALboolean AL_APIENTRY alIsBuffer(ALuint buffer)
ALCcontext *Context;
ALboolean result;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return AL_FALSE;
result = ((!buffer || LookupBuffer(Context->Device->BufferMap, buffer)) ?

View File

@ -143,7 +143,7 @@ AL_API ALboolean AL_APIENTRY alIsEffect(ALuint effect)
ALCcontext *Context;
ALboolean result;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return AL_FALSE;
result = ((!effect || LookupEffect(Context->Device->EffectMap, effect)) ?

View File

@ -24,12 +24,12 @@
#include "AL/alc.h"
#include "alError.h"
AL_API ALenum AL_APIENTRY alGetError(ALvoid)
AL_API ALenum AL_APIENTRY alGetError(void)
{
ALCcontext *Context;
ALenum errorCode;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return AL_INVALID_OPERATION;
errorCode = ExchangeInt(&Context->LastError, AL_NO_ERROR);

View File

@ -139,7 +139,7 @@ AL_API ALboolean AL_APIENTRY alIsFilter(ALuint filter)
ALCcontext *Context;
ALboolean result;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return AL_FALSE;
result = ((!filter || LookupFilter(Context->Device->FilterMap, filter)) ?

View File

@ -61,7 +61,7 @@ AL_API ALvoid AL_APIENTRY alGenSources(ALsizei n,ALuint *sources)
ALCcontext *Context;
ALCdevice *Device;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return;
Device = Context->Device;
@ -114,7 +114,7 @@ AL_API ALvoid AL_APIENTRY alDeleteSources(ALsizei n, const ALuint *sources)
ALsizei i, j;
ALbufferlistitem *BufferList;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return;
if(n < 0)
@ -190,7 +190,7 @@ AL_API ALboolean AL_APIENTRY alIsSource(ALuint source)
ALCcontext *Context;
ALboolean result;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return AL_FALSE;
result = (LookupSource(Context->SourceMap, source) ? AL_TRUE : AL_FALSE);

View File

@ -577,7 +577,7 @@ AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void)
{
ALCcontext *Context;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return;
if(!Context->DeferUpdates)
@ -628,7 +628,7 @@ AL_API ALvoid AL_APIENTRY alProcessUpdatesSOFT(void)
{
ALCcontext *Context;
Context = GetReffedContext();
Context = GetContextRef();
if(!Context) return;
if(ExchangeInt(&Context->DeferUpdates, AL_FALSE))