filter-graph: add normalize option for sofa

Add an option to enable the use of the sofa loudness function to
normalize the IR.

See #5322
This commit is contained in:
Wim Taymans 2026-06-25 16:24:38 +02:00
parent a5ade5f96e
commit 7dc35030dc
2 changed files with 18 additions and 2 deletions

View file

@ -743,6 +743,7 @@ extern struct spa_handle_factory spa_filter_graph_factory;
* filename = ...
* gain = ...
* latency = ...
* normalize = ...
* }
* control = {
* "Azimuth" = ...
@ -764,6 +765,7 @@ extern struct spa_handle_factory spa_filter_graph_factory;
* and contain the HRTF for the various spatial positions.
* - `gain` the overall gain to apply to the IR file, default 1.0.
* - `latency` the latency introduced by the filter, default 0
* - `normalize` automatically normalize the loudness of the IR, default false
*
* - `Azimuth` controls the azimuth, this is the direction the sound is coming from
* in degrees between 0 and 360. 0 is straight ahead. 90 is left, 180