From 6130ffa6c043ea3dd2a3e3866d0f1dea71f96d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 23 Feb 2021 13:27:42 +0100 Subject: [PATCH] API: limit max linear volume to 3.375 (150% in cubic) Clapper UI does not support volume overamp higher than 150%. Anything higher can lead to audio distortion or damaging your audio equipment. --- lib/gst/clapper/gstclapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index 6e13c755..a7e87559 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -331,7 +331,7 @@ gst_clapper_class_init (GstClapperClass * klass) param_specs[PROP_VOLUME] = g_param_spec_double ("volume", "Volume", "Volume", - 0, 10.0, DEFAULT_VOLUME, G_PARAM_READWRITE | + 0, 3.375, DEFAULT_VOLUME, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); param_specs[PROP_MUTE] =