mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-14 05:34:06 -04:00
filter-graph: set min, max and def values for ramp
Set min, max and def values for the control ports of ramp plugin to avoid clamping all control values to 0.
This commit is contained in:
parent
f4558472df
commit
1344bec7bb
1 changed files with 3 additions and 0 deletions
|
|
@ -2486,10 +2486,12 @@ static struct spa_fga_port ramp_ports[] = {
|
|||
{ .index = 1,
|
||||
.name = "Start",
|
||||
.flags = SPA_FGA_PORT_INPUT | SPA_FGA_PORT_CONTROL,
|
||||
.def = 0.0f, .min = -FLT_MAX, .max = FLT_MAX
|
||||
},
|
||||
{ .index = 2,
|
||||
.name = "Stop",
|
||||
.flags = SPA_FGA_PORT_INPUT | SPA_FGA_PORT_CONTROL,
|
||||
.def = 1.0f, .min = -FLT_MAX, .max = FLT_MAX
|
||||
},
|
||||
{ .index = 3,
|
||||
.name = "Current",
|
||||
|
|
@ -2498,6 +2500,7 @@ static struct spa_fga_port ramp_ports[] = {
|
|||
{ .index = 4,
|
||||
.name = "Duration (s)",
|
||||
.flags = SPA_FGA_PORT_INPUT | SPA_FGA_PORT_CONTROL,
|
||||
.def = 1.0f, .min = 0.0f, .max = FLT_MAX
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue