From 32dea58ef8f1a0b15b503708f20c536dd8533411 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 12 Jan 2016 01:40:25 +0100 Subject: [PATCH] Give frel=1.0 to peak resampler; supposedly faster according to zita-resampler upstream. --- mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.39.2