aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-19 11:56:01 -0800
committerChris Robinson <[email protected]>2012-02-19 11:56:01 -0800
commit6dc194ed1defc358c9ed4ee8a67db71f5c040766 (patch)
treeba5da577a3b4d3873206a729eee275154e59ec8d
parent1aa69e77e995e348432ff50a93839c2af0060379 (diff)
Fix a misnamed variable
-rw-r--r--Alc/ALc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index e0b2c481..cb72c1d6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2491,7 +2491,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
static const struct {
const char name[16];
enum DevFmtType type;
- } chanlist[] = {
+ } typelist[] = {
{ "int8", DevFmtByte },
{ "uint8", DevFmtUByte },
{ "int16", DevFmtShort },
@@ -2502,16 +2502,16 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
};
size_t i;
- for(i = 0;i < sizeof(chanlist)/sizeof(chanlist[0]);i++)
+ for(i = 0;i < sizeof(typelist)/sizeof(typelist[0]);i++)
{
- if(strcasecmp(chanlist[i].name, fmt) == 0)
+ if(strcasecmp(typelist[i].name, fmt) == 0)
{
- device->FmtType = chanlist[i].type;
+ device->FmtType = typelist[i].type;
device->Flags |= DEVICE_SAMPLE_TYPE_REQUEST;
break;
}
}
- if(i == sizeof(chanlist)/sizeof(chanlist[0]))
+ if(i == sizeof(typelist)/sizeof(typelist[0]))
ERR("Unsupported sample-type: %s\n", fmt);
}
#define DEVICE_FORMAT_REQUEST (DEVICE_CHANNELS_REQUEST|DEVICE_SAMPLE_TYPE_REQUEST)