[pulseaudio-discuss,v2,4/4] role-ducking: Add support for fading feature

Submitted by Sangchul Lee on April 28, 2017, 1:38 p.m.

Details

Message ID 1493386680-5563-5-git-send-email-sangchul1011@gmail.com
State New
Headers show
Series "role-ducking: Introduction of fading effect" ( rev: 1 ) in PulseAudio

Not browsing as part of any series.

Commit Message

Sangchul Lee April 28, 2017, 1:38 p.m.
fade_out and fade_in module arguments are added for fading duration
of ducking and unducking. The unit of the duration is in milliseconds
and default value is 0.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
---
 src/modules/module-role-ducking.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/modules/module-role-ducking.c b/src/modules/module-role-ducking.c
index add2d36..5ea1023 100644
--- a/src/modules/module-role-ducking.c
+++ b/src/modules/module-role-ducking.c
@@ -36,6 +36,8 @@  PA_MODULE_USAGE(
         "ducking_roles=<Comma(and slash) separated list of roles which will be ducked. Slash can divide the roles into groups>"
         "global=<Should we operate globally or only inside the same device?>"
         "volume=<Volume for the attenuated streams. Default: -20dB. If trigger_roles and ducking_roles are separated by slash, use slash for dividing volume group>"
+        "fade_out=<Fade-out duration(ms). If trigger_roles and ducking_roles are separated by slash, use slash for dividing fade group. Default: 0.>"
+        "fade_in=<Fade-in duration(ms). If trigger_roles and ducking_roles are separated by slash, use slash for dividing fade group. Default: 0.>"
 );
 
 static const char* const valid_modargs[] = {
@@ -43,6 +45,8 @@  static const char* const valid_modargs[] = {
     "ducking_roles",
     "global",
     "volume",
+    "fade_out",
+    "fade_in",
     NULL
 };