aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-15 06:45:51 -0700
committerChris Robinson <[email protected]>2011-06-15 06:45:51 -0700
commit20812280556a8c039b36327d5ded99b455e8dc4e (patch)
treeb10d335bd0d2cbb89cd747f4897b5475fde20d4b
parentf85283c036d5bd88e6981c0c5e6133c937603ad0 (diff)
Declare some variables where they're used
-rw-r--r--Alc/ALc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index eeb5723c..309ad9d6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1234,15 +1234,16 @@ ALCvoid alcSetError(ALCdevice *device, ALenum errorCode)
*/
static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
{
- ALCuint freq, numMono, numStereo, numSends;
- enum DevFmtChannels schans;
- enum DevFmtType stype;
- ALuint attrIdx;
ALuint i;
// Check for attributes
if(attrList && attrList[0])
{
+ ALCuint freq, numMono, numStereo, numSends;
+ enum DevFmtChannels schans;
+ enum DevFmtType stype;
+ ALuint attrIdx;
+
// If a context is already running on the device, stop playback so the
// device attributes can be updated
if((device->Flags&DEVICE_RUNNING))