mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
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:
@@ -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] =
|
||||||
|
Reference in New Issue
Block a user