aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index 77c7236f..b144973a 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -249,7 +249,13 @@ static ALCboolean pa_reset_playback(ALCdevice *device)
PaError err;
streamInfo = pPa_GetStreamInfo(data->stream);
- device->Frequency = streamInfo->sampleRate;
+ if(device->Frequency != streamInfo->sampleRate)
+ {
+ if((device->Flags&DEVICE_FREQUENCY_REQUEST))
+ AL_PRINT("PortAudio does not support changing sample rates (wanted %dhz, got %.1fhz)\n", device->Frequency, streamInfo->sampleRate);
+ device->Flags &= ~DEVICE_FREQUENCY_REQUEST;
+ device->Frequency = streamInfo->sampleRate;
+ }
device->UpdateSize = data->update_size;
err = pPa_StartStream(data->stream);