[PATCH] Set the correct pulse audio properties, for the icon, app name and the media role on the pulse connection. This will help other apps identify mumble at runtime and be able to determine mumble's purpose.

ronoc conor at forwind.net
Fri Mar 4 15:57:13 UTC 2011


---
 src/mumble/PulseAudio.cpp |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/mumble/PulseAudio.cpp b/src/mumble/PulseAudio.cpp
index f5fec60..cbd9ec6 100644
--- a/src/mumble/PulseAudio.cpp
+++ b/src/mumble/PulseAudio.cpp
@@ -99,7 +99,16 @@ PulseAudioSystem::PulseAudioSystem() {
 	pam = pa_threaded_mainloop_new();
 	pa_mainloop_api *api = pa_threaded_mainloop_get_api(pam);
 
-	pacContext = pa_context_new(api, "Mumble");
+	pa_proplist     *proplist;
+
+	proplist = pa_proplist_new ();
+	pa_proplist_sets (proplist, PA_PROP_APPLICATION_NAME, "Mumble");
+	pa_proplist_sets (proplist, PA_PROP_APPLICATION_ID, "net.sourceforge.mumble.mumble");
+	pa_proplist_sets (proplist, PA_PROP_APPLICATION_ICON_NAME, "mumble");
+	pa_proplist_sets (proplist, PA_PROP_MEDIA_ROLE, "phone");
+ 
+	pacContext = pa_context_new_with_proplist (api, NULL, proplist);
+	pa_proplist_free (proplist);
 
 	pa_context_set_subscribe_callback(pacContext, subscribe_callback, this);
 
-- 
1.7.4.1


--=-PCSq0M09iUEbNWklSwhV--






More information about the Pkg-voip-maintainers mailing list