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
This commit is contained in:
parent
365a62d63a
commit
fc96e965ae
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user