I am trying to write a basic volume application. Since I'm writing this in Ruby I don't want to extend the C library or use ffi
, instead I trying to write this with ruby-dbus
I got the Address
Property with /org/pulse_audio/server_lookup1
but the file the address points to doesn't exist. Is Pulse Audio properly configured for dbus
?
Ubuntu ships Pulse Audio without D-Bus support. To enable it put the following line at the end of file /etc/pulse/default.pa
:
load-module module-dbus-protocol
Restart Pulse Audio:
pkill pulseaudio; pulseaudio
Solution found at pulseaudio-mixer-cli project which demonstrates how to use pulseaudio over D-Bus.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With