sqp / pulseaudio

pulseaudio dbus client for go
ISC License
36 stars 7 forks source link

Listen for signal Device.OnActivePortUpdated #2

Closed kovetskiy closed 6 years ago

kovetskiy commented 6 years ago

Hi.

In following patch I've added listening for signal "OnActivePortUpdated" it allows to detect when headphones injected.

Thanks for the great lib.

sqp commented 6 years ago

Thanks for the contribution. I tried to keep the lib simple and close to the DBus API rather than trying to abstract everything. I hope you wasn't too surprised with the split registration interface and it's was easy to understand and implement. Let me know if you want to add a link to your code in the usage/examples section.