diff options
author | Chris Robinson <[email protected]> | 2016-06-01 10:21:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-06-01 10:21:16 -0700 |
commit | a16d0b192e9833ae0abd6e1e7ef2305c34705497 (patch) | |
tree | 52afa23bd740e138a7a4e9d0c82100608a36e568 /OpenAL32/alSource.c | |
parent | c63d468d4cc738ead65ff7ebc9cf6afcad400ee1 (diff) |
Make a function static
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index c1824d5b..5cc6c34b 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -47,8 +47,9 @@ 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 ALvoid InitSourceParams(ALsource *Source); -static ALvoid DeinitSource(ALsource *source); +static void InitSourceParams(ALsource *Source); +static void DeinitSource(ALsource *source); +static void UpdateSourceProps(ALsource *source, ALuint num_sends, ALCcontext *context); static ALint64 GetSourceSampleOffset(ALsource *Source, ALCdevice *device, ALuint64 *clocktime); static ALdouble GetSourceSecOffset(ALsource *Source, ALCdevice *device, ALuint64 *clocktime); static ALdouble GetSourceOffset(ALsource *Source, ALenum name, ALCdevice *device); @@ -2665,7 +2666,7 @@ done: } -static ALvoid InitSourceParams(ALsource *Source) +static void InitSourceParams(ALsource *Source) { ALuint i; @@ -2741,7 +2742,7 @@ static ALvoid InitSourceParams(ALsource *Source) ATOMIC_INIT(&Source->FreeList, NULL); } -static ALvoid DeinitSource(ALsource *source) +static void DeinitSource(ALsource *source) { ALbufferlistitem *BufferList; struct ALsourceProps *props; @@ -2784,7 +2785,7 @@ static ALvoid DeinitSource(ALsource *source) } } -void UpdateSourceProps(ALsource *source, ALuint num_sends, ALCcontext *context) +static void UpdateSourceProps(ALsource *source, ALuint num_sends, ALCcontext *context) { struct ALsourceProps *props; size_t i; @@ -2825,7 +2826,7 @@ void UpdateSourceProps(ALsource *source, ALuint num_sends, ALCcontext *context) size_t j; for(j = 0;j < 3;j++) ATOMIC_STORE(&props->Orientation[i][j], source->Orientation[i][j], - almemory_order_relaxed); + almemory_order_relaxed); } ATOMIC_STORE(&props->HeadRelative, source->HeadRelative, almemory_order_relaxed); ATOMIC_STORE(&props->Looping, source->Looping, almemory_order_relaxed); |