aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-06 22:00:35 -0800
committerChris Robinson <[email protected]>2007-12-06 22:00:35 -0800
commit52aed94765269f5d11d691cf09a0a1265399ccf7 (patch)
tree2455527181eda3ab58a246ba77291d268d0e6177 /OpenAL32
parent7ae8be3e99ec39f677f3846da4bccbec42ac5ddb (diff)
Make some source-local functions static
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alSource.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 90d70939..feb54eb6 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -27,10 +27,10 @@
#include "alError.h"
#include "alSource.h"
-ALvoid InitSourceParams(ALsource *pSource);
-ALboolean GetSourceOffset(ALsource *pSource, ALenum eName, ALfloat *pflOffset);
-ALvoid ApplyOffset(ALsource *pSource, ALboolean bUpdateContext);
-ALint GetByteOffset(ALsource *pSource);
+static ALvoid InitSourceParams(ALsource *pSource);
+static ALboolean GetSourceOffset(ALsource *pSource, ALenum eName, ALfloat *pflOffset);
+static ALvoid ApplyOffset(ALsource *pSource, ALboolean bUpdateContext);
+static ALint GetByteOffset(ALsource *pSource);
ALAPI ALvoid ALAPIENTRY alGenSources(ALsizei n,ALuint *sources)
{
@@ -1816,7 +1816,7 @@ ALAPI ALvoid ALAPIENTRY alSourceUnqueueBuffers( ALuint source, ALsizei n, ALuint
}
-ALvoid InitSourceParams(ALsource *pSource)
+static ALvoid InitSourceParams(ALsource *pSource)
{
pSource->flInnerAngle = 360.0f;
pSource->flOuterAngle = 360.0f;
@@ -1852,7 +1852,7 @@ ALvoid InitSourceParams(ALsource *pSource)
Gets the current playback position in the given Source, in the appropriate format (Bytes, Samples or MilliSeconds)
The offset is relative to the start of the queue (not the start of the current buffer)
*/
-ALboolean GetSourceOffset(ALsource *pSource, ALenum eName, ALfloat *pflOffset)
+static ALboolean GetSourceOffset(ALsource *pSource, ALenum eName, ALfloat *pflOffset)
{
ALbufferlistitem *pBufferList;
ALfloat flBufferFreq;
@@ -1947,7 +1947,7 @@ ALboolean GetSourceOffset(ALsource *pSource, ALenum eName, ALfloat *pflOffset)
Apply a playback offset to the Source. This function will update the queue (to correctly
mark buffers as 'pending' or 'processed' depending upon the new offset.
*/
-void ApplyOffset(ALsource *pSource, ALboolean bUpdateContext)
+static void ApplyOffset(ALsource *pSource, ALboolean bUpdateContext)
{
ALbufferlistitem *pBufferList;
ALint lBufferSize, lTotalBufferSize;
@@ -2028,7 +2028,7 @@ void ApplyOffset(ALsource *pSource, ALboolean bUpdateContext)
offset supplied by the application). This takes into account the fact that the buffer format
may have been modifed by AL (e.g 8bit samples are converted to 16bit)
*/
-ALint GetByteOffset(ALsource *pSource)
+static ALint GetByteOffset(ALsource *pSource)
{
ALbuffer *pBuffer = NULL;
ALbufferlistitem *pBufferList;