filter-chain: add Level control input port for noisegate

This makes it possible to use another volume measurement algorithm to
drive the noise gate, such as a VAD algorithm.
This commit is contained in:
Wim Taymans 2025-07-17 12:10:25 +02:00
parent 4b37f3db3d
commit b3dddfed6a
2 changed files with 32 additions and 17 deletions

View file

@ -630,6 +630,10 @@ extern struct spa_handle_factory spa_filter_graph_factory;
* It has an "In" input port and an "Out" output data ports. Normally the input
* data is passed directly to the output.
*
* The "Level" control port can be used to control the measured volume of the "In"
* port. When not connected, a simple volume algorithm on the "In" port will be
* used.
*
* If the volume drops below "Close threshold", the noisegate will ramp down the
* volume to zero for a duration of "Release (s)" seconds. When the volume is above
* "Open threshold", the noisegate will ramp up the volume to 1 for a duration