[pulseaudio-discuss] Pulse Audio plugins - Dynamic Output control

Arun Raghavan arun at arunraghavan.net
Wed Jun 1 10:06:52 UTC 2016


On Fri, 27 May 2016, at 12:40 PM, Samiran Sarkar wrote:
> HI ,
> 
> Can we set Audio output port dynamically by controlling some pulseAudio
> plugin  in between BT A2DP & HFP ?   ( because I want to use 2 output
> device for different purpose)
> Since pulseAudio is a dbus Message communication is there any way  by
> posting some dbus message or calling some method we can achieve that ?
> It can be kind of plugin ( c/c++ method call) which may allow to control
> Audio output.
> 
> I know the scrip where to change for audio output -just  want to avoid
> hardcoding .

You can do this externally using the PA API (libpulse) or D-Bus API. 

I'd written some code to do this in a module:

  https://cgit.freedesktop.org/~arun/pulseaudio/log/?h=bluetooth

This should just be merged with module-blueooth-policy now.

-- Arun


More information about the pulseaudio-discuss mailing list