-
Notifications
You must be signed in to change notification settings - Fork 51
failed to register callback for PulseAudio signal #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Oh, I did not know that Pulseaudio runs a separate bus for itself. That will be fun to debug :) |
Hmm, yeah. It took me a while to figure that out as well - but it is mentioned at the beginning of the pulse documentation. :) I have a working python example now - see https://gist.github.com/r10r/5501136 - but I definitely prefer the ruby version ;) |
PulseAudio uses a connection outside the well known buses: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus This is a dirty hack and should be cleaned up by separating BusConnection from Connection.
I have pushed out a quick fix in the peer-connection branch. A proper fix will follow. BTW I didn't know how to trigger a |
hey cool, i'll try it out later the evening and will give you feedback. |
Works fine now :D - Thanks a lot. Can you give me a short hint why it is not required to call |
DBus connections that are not session nor system buses do not implement `AddMatch`. So, trying to add a match in `ldbus.api.watch` results in the following error being returned by DBus: `Method "AddMatch" with signature "s" on interface "org.freedesktop.DBus" doesn't exist` To fix the issue, simply skip the step to add a match. Manually verified to work with PulseAudio. Adding tests for this seems too painful compared with the benefit received. References: * mvidner/ruby-dbus#44
the fix is dirty, will move code to PeerConnection
These are: - unique_name - proxy - service - [] - send_hello Split these up for a better fix of #44, signals on peer connections: - add_match - remove_match
Fixed now |
Hi,
I'm trying to register a callback for a pulseaudio source device on the pulseaudio bus.
see https://gist.github.com/r10r/5496667
I get the following error:
Any idea what is going wrong here?
The text was updated successfully, but these errors were encountered: