diff options
author | Chris Robinson <[email protected]> | 2015-11-07 23:05:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-11-07 23:05:45 -0800 |
commit | 9891d61206faa8b4fb1bd146b74da010264a4b69 (patch) | |
tree | e9bed0c58652b1476f28187ac0ede4851863f618 /Alc/backends/pulseaudio.c | |
parent | fe00b65d9ad17bdd29fdbac7916d3a740eb1b467 (diff) |
Add options to disable Pulse's and ALSA's resamplers
Diffstat (limited to 'Alc/backends/pulseaudio.c')
-rw-r--r-- | Alc/backends/pulseaudio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index ffbf04b2..9ad04a71 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -950,7 +950,8 @@ static ALCboolean ALCpulsePlayback_reset(ALCpulsePlayback *self) ALCpulsePlayback_sinkInfoCallback, self); wait_for_operation(o, self->loop); - if(!(device->Flags&DEVICE_FREQUENCY_REQUEST)) + if(GetConfigValueBool(al_string_get_cstr(device->DeviceName), "pulse", "fix-rate", 0) || + !(device->Flags&DEVICE_FREQUENCY_REQUEST)) flags |= PA_STREAM_FIX_RATE; flags |= PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_AUTO_TIMING_UPDATE; flags |= PA_STREAM_ADJUST_LATENCY; |