From 84c1f2bfd0daee3699c5f5994acf990cca2e5af7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 16 Apr 2012 23:09:36 -0700 Subject: Avoid shadowing a couple variables --- OpenAL32/alBuffer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenAL32') 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); -- cgit v1.2.3