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.
This commit is contained in:
Rafał Dzięgiel
2021-02-23 13:27:42 +01:00
parent ddc4030a30
commit 6130ffa6c0

View File

@@ -331,7 +331,7 @@ gst_clapper_class_init (GstClapperClass * klass)
param_specs[PROP_VOLUME] = param_specs[PROP_VOLUME] =
g_param_spec_double ("volume", "Volume", "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); G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
param_specs[PROP_MUTE] = param_specs[PROP_MUTE] =