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/solaris.c | |
parent | 9a28402b90c596ccdc7d1a4ee93f5711637bb484 (diff) |
Add a frequency-request device flag
Diffstat (limited to 'Alc/solaris.c')
-rw-r--r-- | Alc/solaris.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/solaris.c b/Alc/solaris.c index 18c73343..1b94be1d 100644 --- a/Alc/solaris.c +++ b/Alc/solaris.c @@ -192,7 +192,13 @@ static ALCboolean solaris_reset_playback(ALCdevice *device) return ALC_FALSE; } - device->Frequency = info.play.sample_rate; + if(device->Frequency != info.play.sample_rate) + { + if((device->Flags&DEVICE_FREQUENCY_REQUEST)) + AL_PRINT("Failed to set requested frequency %dhz, got %dhz instead\n", device->Frequency, info.play.sample_rate); + device->Flags &= ~DEVICE_FREQUENCY_REQUEST; + device->Frequency = info.play.sample_rate; + } device->UpdateSize = (info.play.buffer_size/device->NumUpdates) + 1; data->data_size = device->UpdateSize * frameSize; |