Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Contacting Pulse Audio over Dbus

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?

like image 405
Christopher Avatar asked Dec 21 '22 13:12

Christopher


1 Answers

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.

like image 70
izidor Avatar answered Jan 12 '23 14:01

izidor