From: Steinar H. Gunderson Date: Tue, 12 Jan 2016 00:40:25 +0000 (+0100) Subject: Give frel=1.0 to peak resampler; supposedly faster according to zita-resampler upstream. X-Git-Tag: 1.0.0~20 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=32dea58ef8f1a0b15b503708f20c536dd8533411 Give frel=1.0 to peak resampler; supposedly faster according to zita-resampler upstream. --- diff --git a/mixer.cpp b/mixer.cpp index f3ff4c3..00b3efe 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -184,7 +184,7 @@ Mixer::Mixer(const QSurfaceFormat &format, unsigned num_cards) // hlen=16 is pretty low quality, but we use quite a bit of CPU otherwise, // and there's a limit to how important the peak meter is. - peak_resampler.setup(OUTPUT_FREQUENCY, OUTPUT_FREQUENCY * 4, /*num_channels=*/2, /*hlen=*/16); + peak_resampler.setup(OUTPUT_FREQUENCY, OUTPUT_FREQUENCY * 4, /*num_channels=*/2, /*hlen=*/16, /*frel=*/1.0); alsa.reset(new ALSAOutput(OUTPUT_FREQUENCY, /*num_channels=*/2)); }