diff options
author | Chris Robinson <[email protected]> | 2015-11-23 16:29:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-11-23 16:29:32 -0800 |
commit | c8a3e51296d367990b9603a8e53f24dd1068b23d (patch) | |
tree | 7c671d6f2980005e23a98b67fbb85fbbccf43ffa /Alc | |
parent | 6bb4bdfa4c5aedab2f19711a95ff173621ea9fa1 (diff) |
Fix the allow-resampler check for ALSA
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/backends/alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index 9a443c09..955fd8c0 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -770,7 +770,7 @@ static ALCboolean ALCplaybackAlsa_reset(ALCplaybackAlsa *self) } CHECK(snd_pcm_hw_params_set_channels(self->pcmHandle, hp, ChannelsFromDevFmt(device->FmtChans))); /* set rate (implicitly constrains period/buffer parameters) */ - if(GetConfigValueBool(al_string_get_cstr(device->DeviceName), "alsa", "allow-resampler", 0)) + if(!GetConfigValueBool(al_string_get_cstr(device->DeviceName), "alsa", "allow-resampler", 0)) { if(snd_pcm_hw_params_set_rate_resample(self->pcmHandle, hp, 0) < 0) ERR("Failed to disable ALSA resampler\n"); |