aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-03-13 14:38:09 -0700
committerChris Robinson <[email protected]>2012-03-13 14:38:09 -0700
commit55c5e4fe92eefc4c9208a4f6ac967247a4c4ab34 (patch)
treef3942021882b7027f55e161edb3ea292a32b5984 /Alc
parent3b165809ccebc5690f07f04c5be5549cfeb936e8 (diff)
Rename ForcedEffect to DefaultEffect
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index e70886ef..328443d3 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -397,7 +397,7 @@ static ALCboolean TrapALCError = ALC_FALSE;
static pthread_once_t alc_config_once = PTHREAD_ONCE_INIT;
/* Forced effect that applies to sources that don't have an effect on send 0 */
-static ALeffect ForcedEffect;
+static ALeffect DefaultEffect;
///////////////////////////////////////////////////////
@@ -722,12 +722,12 @@ static void alc_initconfig(void)
} while(next++);
}
- InitEffect(&ForcedEffect);
+ InitEffect(&DefaultEffect);
str = getenv("ALSOFT_DEFAULT_REVERB");
if(str && str[0])
- GetReverbEffect(str, &ForcedEffect);
+ GetReverbEffect(str, &DefaultEffect);
else if(ConfigValueStr(NULL, "default-reverb", &str))
- GetReverbEffect(str, &ForcedEffect);
+ GetReverbEffect(str, &DefaultEffect);
}
@@ -2297,7 +2297,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCin
UnlockLists();
if(device->DefaultSlot)
- InitializeEffect(ALContext, device->DefaultSlot, &ForcedEffect);
+ InitializeEffect(ALContext, device->DefaultSlot, &DefaultEffect);
ALContext->LastError = AL_NO_ERROR;
ALCdevice_DecRef(device);
@@ -2615,7 +2615,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
device->NumStereoSources = 1;
device->NumMonoSources = device->MaxNoOfSources - device->NumStereoSources;
- if(ForcedEffect.type != AL_EFFECT_NULL)
+ if(DefaultEffect.type != AL_EFFECT_NULL)
{
device->DefaultSlot = (ALeffectslot*)(device+1);
if(InitEffectSlot(device->DefaultSlot) != AL_NO_ERROR)