aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/solaris.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/solaris.c')
-rw-r--r--Alc/solaris.c8
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;