diff options
author | Chris Robinson <[email protected]> | 2011-05-03 02:29:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-03 02:29:26 -0700 |
commit | ba236ad1084ffc99890f0301f444ddc7d63a64e1 (patch) | |
tree | 57c2cb594091d19ff86485d2a9039e69ad595778 /Alc/oss.c | |
parent | 9a28402b90c596ccdc7d1a4ee93f5711637bb484 (diff) |
Add a frequency-request device flag
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -262,7 +262,13 @@ static ALCboolean oss_reset_playback(ALCdevice *device) return ALC_FALSE; } - device->Frequency = ossSpeed; + if(device->Frequency != (ALuint)ossSpeed) + { + if((device->Flags&DEVICE_FREQUENCY_REQUEST)) + AL_PRINT("Failed to set requested frequency %dhz, got %dhz instead\n", device->Frequency, ossSpeed); + device->Flags &= ~DEVICE_FREQUENCY_REQUEST; + device->Frequency = ossSpeed; + } device->UpdateSize = info.fragsize / frameSize; device->NumUpdates = info.fragments + 1; |