diff options
author | Chris Robinson <[email protected]> | 2011-05-06 01:50:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-06 01:50:19 -0700 |
commit | eef41e76d7293ad709c8aa27ee20e79c5ebd5478 (patch) | |
tree | f09e7386aa7c19d25656ed0d88a88b8bdd25f272 /Alc | |
parent | d583f7f307ef6cfba9a4e64a89393184bd114d11 (diff) |
Don't clear the request flag if a new context doesn't specify a frequency
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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]) |