[pulseaudio-discuss] Volume control for media players playing simultaneously

Arun Raghavan arun.raghavan at collabora.co.uk
Fri Oct 25 13:16:51 CEST 2013


On Fri, 2013-10-25 at 03:57 +0000, Sathishkumar Sivagurunathan wrote:
> Hi,
> 
>  
> 
>      I am a newcomer to the pulse audio. I would like to know whether
> I can do the following procedure using pulse audio.
> 
>  
> 
> 1)     Let us assume we have two media players.
> 
> 2)     Player 1 is running.
> 
> 3)     Now I start the Player 2.
> 
> 4)     Player 1 should be reduced or muted in volume while Player 2
> should now run.
> 
> 5)     Once Player 2 is finished, Player 1 should return to the
> previous volume setting.
> 
>  
> 
>    My questions/doubts are
> 
>  
> 
> a)     Is the above mentioned procedure implemented using Pulse audio.

Yes, it can be.

> b)     Is there any example for the above mentioned.

See src/modules/module-role-ducking.c and src/modules/module-role-cork.c

-- Arun




More information about the pulseaudio-discuss mailing list