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?

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.

I found there is a API "context_get_sink_info_callback" that can get all available sinks' information. But rather than calling this API periodically to refresh device status, I hope PA can notify my app on the device status change.

Great thanks!
Mengdong


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110920/80501c62/attachment.htm>


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

  Powered by Linux