aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-02-08 16:38:53 -0800
committerChris Robinson <[email protected]>2010-02-08 16:38:53 -0800
commitfc96e965ae3a4741f57abfd171ac9d3e7776ce9f (patch)
tree7d89ae35073f8c0b20be8cb5e665f496960ec91d
parent365a62d63ae0e9edae4a601ac8da6f0291740448 (diff)
Always disable ALSA's resampler for playback
This means the frequency config option won't have an effect if the ALSA device can't set an alternate sampling rate
-rw-r--r--Alc/alsa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index bf3afc83..f95dfb2a 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -617,8 +617,7 @@ static ALCboolean alsa_reset_playback(ALCdevice *device)
err = "set channels";
}
}
- if(i >= 0 && !ConfigValueExists(NULL, "frequency") &&
- (i=psnd_pcm_hw_params_set_rate_resample(data->pcmHandle, p, 0)) < 0)
+ if(i >= 0 && (i=psnd_pcm_hw_params_set_rate_resample(data->pcmHandle, p, 0)) < 0)
{
AL_PRINT("Failed to disable ALSA resampler\n");
i = 0;