aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-16 23:09:36 -0700
committerChris Robinson <[email protected]>2012-04-16 23:09:36 -0700
commit84c1f2bfd0daee3699c5f5994acf990cca2e5af7 (patch)
treeb0161bfc9c13e00b0ca9675f84563dc23c53029d /OpenAL32/alBuffer.c
parentd7ba49ea6230322d1dee7da263f1d57e8153d895 (diff)
Avoid shadowing a couple variables
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 5a0e1dee..c2d0f41c 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -411,13 +411,13 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
alSetError(Context, err);
break;
- case UserFmtIMA4: {
+ case UserFmtIMA4:
/* Here is where things vary:
* nVidia and Apple use 64+1 sample frames per block -> block_size=36 bytes per channel
* Most PC sound software uses 2040+1 sample frames per block -> block_size=1024 bytes per channel
*/
- ALuint FrameSize = ChannelsFromUserFmt(SrcChannels) * 36;
- ALenum NewFormat = AL_FORMAT_MONO16;
+ FrameSize = ChannelsFromUserFmt(SrcChannels) * 36;
+ NewFormat = AL_FORMAT_MONO16;
switch(SrcChannels)
{
case UserFmtMono: NewFormat = AL_FORMAT_MONO16; break;
@@ -435,7 +435,7 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
SrcChannels, SrcType, data, AL_TRUE);
if(err != AL_NO_ERROR)
alSetError(Context, err);
- } break;
+ break;
}
ALCcontext_DecRef(Context);