Make some more functions static where they're used
This commit is contained in:
parent
c4a76af397
commit
38261a0f2a
@ -104,20 +104,6 @@ typedef struct ALsource {
|
||||
ALuint id;
|
||||
} ALsource;
|
||||
|
||||
inline void LockSourcesRead(ALCcontext *context)
|
||||
{ LockUIntMapRead(&context->SourceMap); }
|
||||
inline void UnlockSourcesRead(ALCcontext *context)
|
||||
{ UnlockUIntMapRead(&context->SourceMap); }
|
||||
inline void LockSourcesWrite(ALCcontext *context)
|
||||
{ LockUIntMapWrite(&context->SourceMap); }
|
||||
inline void UnlockSourcesWrite(ALCcontext *context)
|
||||
{ UnlockUIntMapWrite(&context->SourceMap); }
|
||||
|
||||
inline struct ALsource *LookupSource(ALCcontext *context, ALuint id)
|
||||
{ return (struct ALsource*)LookupUIntMapKeyNoLock(&context->SourceMap, id); }
|
||||
inline struct ALsource *RemoveSource(ALCcontext *context, ALuint id)
|
||||
{ return (struct ALsource*)RemoveUIntMapKeyNoLock(&context->SourceMap, id); }
|
||||
|
||||
void UpdateAllSourceProps(ALCcontext *context);
|
||||
|
||||
ALvoid ReleaseALSources(ALCcontext *Context);
|
||||
|
@ -40,13 +40,6 @@
|
||||
#include "almalloc.h"
|
||||
|
||||
|
||||
extern inline void LockSourcesRead(ALCcontext *context);
|
||||
extern inline void UnlockSourcesRead(ALCcontext *context);
|
||||
extern inline void LockSourcesWrite(ALCcontext *context);
|
||||
extern inline void UnlockSourcesWrite(ALCcontext *context);
|
||||
extern inline struct ALsource *LookupSource(ALCcontext *context, ALuint id);
|
||||
extern inline struct ALsource *RemoveSource(ALCcontext *context, ALuint id);
|
||||
|
||||
static void InitSourceParams(ALsource *Source, ALsizei num_sends);
|
||||
static void DeinitSource(ALsource *source, ALsizei num_sends);
|
||||
static void UpdateSourceProps(ALsource *source, ALvoice *voice, ALsizei num_sends, ALCcontext *context);
|
||||
@ -56,6 +49,20 @@ static ALdouble GetSourceOffset(ALsource *Source, ALenum name, ALCcontext *conte
|
||||
static ALboolean GetSampleOffset(ALsource *Source, ALuint *offset, ALsizei *frac);
|
||||
static ALboolean ApplyOffset(ALsource *Source, ALvoice *voice);
|
||||
|
||||
static inline void LockSourcesRead(ALCcontext *context)
|
||||
{ LockUIntMapRead(&context->SourceMap); }
|
||||
static inline void UnlockSourcesRead(ALCcontext *context)
|
||||
{ UnlockUIntMapRead(&context->SourceMap); }
|
||||
static inline void LockSourcesWrite(ALCcontext *context)
|
||||
{ LockUIntMapWrite(&context->SourceMap); }
|
||||
static inline void UnlockSourcesWrite(ALCcontext *context)
|
||||
{ UnlockUIntMapWrite(&context->SourceMap); }
|
||||
|
||||
static inline ALsource *LookupSource(ALCcontext *context, ALuint id)
|
||||
{ return (ALsource*)LookupUIntMapKeyNoLock(&context->SourceMap, id); }
|
||||
static inline ALsource *RemoveSource(ALCcontext *context, ALuint id)
|
||||
{ return (ALsource*)RemoveUIntMapKeyNoLock(&context->SourceMap, id); }
|
||||
|
||||
static inline ALbuffer *LookupBuffer(ALCdevice *device, ALuint id)
|
||||
{
|
||||
BufferSubList *sublist;
|
||||
|
Loading…
Reference in New Issue
Block a user