On Fri, Dec 14, 2012 at 2:07 PM, Tanu Kaskinen <tanuk at iki.fi> wrote: > On Fri, 2012-12-14 at 13:40 -0200, Fl?vio Ceolin wrote: >> Hi Tanu, >> >> On Fri, Dec 14, 2012 at 5:44 AM, Tanu Kaskinen <tanuk at iki.fi> wrote: >> > On Thu, 2012-12-13 at 17:00 -0200, Flavio Ceolin wrote: >> >> This module works pretty similar to the module-role-cork. >> >> It should be used as an alternative to that module. Basically >> >> it decreases the volume of the streams specified in ducking_roles >> >> in the presence of at least one stream specified in trigger_roles. >> >> Also, it's possible to choice the volume that will be used in the >> >> ducking streams and if it should operates in all devices or not. >> >> >> >> For basic reference: http://en.wikipedia.org/wiki/Ducking >> >> --- >> >> src/Makefile.am | 10 +- >> >> src/modules/module-role-ducking.c | 326 ++++++++++++++++++++++++++++++++++++++ >> >> 2 files changed, 335 insertions(+), 1 deletion(-) >> >> create mode 100644 src/modules/module-role-ducking.c >> > >> > Thanks, applied to the "next" branch with some small changes: replaced >> > "TRUE" and "FALSE" with "true" and "false", adjusted the "volume" module >> > argument documentation and changed the default volume from full volume >> > to -20dB. Defaulting to full volume doesn't make sense, because then the >> > module does effectively nothing. >> > >> >> Yep, the default volume does nothing, i was thinking that if the user >> does not set the volume the module should do nothing. But i prefer set >> the default value to -20dB as well. > > Btw, what volume do you use yourself? I haven't actually tested if -20dB > is a sensible value, so if you prefer something else, we should probably > change the default. I'm using 60%, but i don't have any requirement or necessity with this value. It was just an arbitrary value set by me. > > -- > Tanu > Flavio Ceolin