aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index a7e87587..500ab13b 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -664,7 +664,13 @@ static ALCboolean alsa_reset_playback(ALCdevice *device)
psnd_pcm_sw_params_free(sp);
- device->Frequency = rate;
+ if(device->Frequency != rate)
+ {
+ if((device->Flags&DEVICE_FREQUENCY_REQUEST))
+ AL_PRINT("Failed to set requested frequency %dhz, got %dhz instead\n", device->Frequency, rate);
+ device->Flags &= ~DEVICE_FREQUENCY_REQUEST;
+ device->Frequency = rate;
+ }
SetDefaultChannelOrder(device);