Don't clear the request flag if a new context doesn't specify a frequency

This commit is contained in:
Chris Robinson 2011-05-06 01:50:19 -07:00
parent d583f7f307
commit eef41e76d7

View File

@ -1057,13 +1057,8 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
numStereo = device->NumStereoSources;
numSends = device->NumAuxSends;
if(!ConfigValueExists(NULL, "frequency"))
device->Flags &= ~DEVICE_FREQUENCY_REQUEST;
else
{
freq = GetConfigValueInt(NULL, "frequency", SWMIXER_OUTPUT_RATE);
if(freq < 8000) freq = 8000;
}
freq = GetConfigValueInt(NULL, "frequency", freq);
if(freq < 8000) freq = 8000;
attrIdx = 0;
while(attrList[attrIdx])