Does pulseaudio provide any callback mechanism for application on device change?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Does Pulseaudio provide a callback mechanism or any other methods to
> > notify application when audio device changes?
> 
> Take a look at
> http://www.freedesktop.org/software/pulseaudio/doxygen/subscribe.html
> 
> > I?m working on a policy application that need to know all available
> > audio devices (speaker/mike, headphone, Bluetooth headset, HDMI) and
> > allow user to manually set the default sink/source/port.
> >
> > The application need to be notified on headset/HDMI
> > connection/disconnection.
> 
> This will need something like David's jack detection work which is not
> in master yet.
> 

Thanks a lot for the information, Arun!
So after adding David's jack detection patch, the port's available state change will trigger the event "PA_SUBSCRIPTION_EVENT_SOURCE|PA_SUBSCRIPTION_EVENT_CHANGE" and " PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE", right?

-Mengdong


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux