]> git.sesse.net Git - nageru/commitdiff
Give frel=1.0 to peak resampler; supposedly faster according to zita-resampler upstream.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 12 Jan 2016 00:40:25 +0000 (01:40 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 12 Jan 2016 00:40:25 +0000 (01:40 +0100)
mixer.cpp

index f3ff4c385c1d46b4f3b03dc5832a6ba816a8587a..00b3efef5032ef3ecfb0fd0c2100c506009bde96 100644 (file)
--- 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));
 }