From 7a6c54d8e78706238197aa2508c4d3d434ac9c21 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 22 Mar 2023 23:29:24 +0100 Subject: [PATCH] GstEnginePipeline: Remove hard-coded num-bands --- src/engine/gstenginepipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gstenginepipeline.cpp b/src/engine/gstenginepipeline.cpp index 9d9786f66..986942616 100644 --- a/src/engine/gstenginepipeline.cpp +++ b/src/engine/gstenginepipeline.cpp @@ -523,7 +523,7 @@ bool GstEnginePipeline::InitAudioBin(QString &error) { // As a workaround, we create two dummy bands at both ends of the spectrum. // This causes the actual first and last adjustable bands to be implemented using band-pass filters. - g_object_set(G_OBJECT(equalizer_), "num-bands", 10 + 2, nullptr); + g_object_set(G_OBJECT(equalizer_), "num-bands", kEqBandCount + 2, nullptr); // Dummy first band (bandwidth 0, cutting below 20Hz): GstObject *first_band = GST_OBJECT(gst_child_proxy_get_child_by_index(GST_CHILD_PROXY(equalizer_), 0));