aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-27 14:30:13 -0800
committerChris Robinson <[email protected]>2010-11-27 14:30:13 -0800
commit4d0f70439c18f1034d1375a331bbd28e1f1adeff (patch)
treef576ad94a111e1fa729d3a8c6b476a7a348c042d /OpenAL32
parentd3bb5d4fcb91af97b396d0f22cb56b519468328f (diff)
Rename a function
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alBuffer.h4
-rw-r--r--OpenAL32/alBuffer.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h
index 44a05915..f47685ce 100644
--- a/OpenAL32/Include/alBuffer.h
+++ b/OpenAL32/Include/alBuffer.h
@@ -24,8 +24,8 @@ enum FmtChannels {
};
-static __inline void DecompFormat(ALenum format, enum FmtType *type,
- enum FmtChannels *order)
+static __inline void DecomposeFormat(ALenum format, enum FmtType *type,
+ enum FmtChannels *order)
{
switch(format)
{
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 2db0b3fd..8f9dcc6e 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -352,7 +352,7 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
ALBuf->LoopStart = 0;
ALBuf->LoopEnd = newsize / NewChannels / NewBytes;
- DecompFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
+ DecomposeFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
ALBuf->OriginalSize = size;
ALBuf->OriginalAlign = OrigBytes * 2;
@@ -402,7 +402,7 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
ALBuf->LoopStart = 0;
ALBuf->LoopEnd = newsize / Channels / NewBytes;
- DecompFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
+ DecomposeFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
ALBuf->OriginalSize = size;
ALBuf->OriginalAlign = 36 * Channels;
@@ -457,7 +457,7 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
ALBuf->LoopStart = 0;
ALBuf->LoopEnd = newsize / Channels / NewBytes;
- DecompFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
+ DecomposeFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
ALBuf->OriginalSize = size;
ALBuf->OriginalAlign = 1 * Channels;
@@ -500,7 +500,7 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
ALBuf->LoopStart = 0;
ALBuf->LoopEnd = newsize / NewChannels / NewBytes;
- DecompFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
+ DecomposeFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
ALBuf->OriginalSize = size;
ALBuf->OriginalAlign = 1 * 2;
@@ -1080,7 +1080,7 @@ static ALenum LoadData(ALbuffer *ALBuf, const ALvoid *data, ALsizei size, ALuint
ALBuf->LoopStart = 0;
ALBuf->LoopEnd = newsize / NewChannels / NewBytes;
- DecompFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
+ DecomposeFormat(NewFormat, &ALBuf->FmtType, &ALBuf->FmtChannels);
ALBuf->OriginalSize = size;
ALBuf->OriginalAlign = OrigBytes * OrigChannels;