rename pulseaudio source/sink programmatically

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rename pulseaudio source/sink programmatically

Antoine Martin
Hi,

I use pygst to connect to pulseaudio and I would like to be able to tell
pulseaudio what the name of my application is so that the user knows
what to do with it when many show up in the volume control.
(at the moment it seems to use the application's name as found on the
command line)

I can see other apps doing it: VirtualBox can name each virtual machine
it launches as: "VBox: THENAME"

Is the functionnality exposed somewhere that I've missed in gstreamer's
pulse source/sink API? and in pygst?

Thanks
Antoine

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rename pulseaudio source/sink programmatically

Benjamin Otte
pulsesink uses the return value from g_get_application_name() by
default. No idea if and how that function is exposed in Python though.

Benjamin


On Wed, 2010-06-02 at 02:25 +0700, Antoine Martin wrote:

> Hi,
>
> I use pygst to connect to pulseaudio and I would like to be able to tell
> pulseaudio what the name of my application is so that the user knows
> what to do with it when many show up in the volume control.
> (at the moment it seems to use the application's name as found on the
> command line)
>
> I can see other apps doing it: VirtualBox can name each virtual machine
> it launches as: "VBox: THENAME"
>
> Is the functionnality exposed somewhere that I've missed in gstreamer's
> pulse source/sink API? and in pygst?
>
> Thanks
> Antoine
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rename pulseaudio source/sink programmatically

Bastien Nocera-2
In reply to this post by Antoine Martin
On Wed, 2010-06-02 at 02:25 +0700, Antoine Martin wrote:

> Hi,
>
> I use pygst to connect to pulseaudio and I would like to be able to tell
> pulseaudio what the name of my application is so that the user knows
> what to do with it when many show up in the volume control.
> (at the moment it seems to use the application's name as found on the
> command line)
>
> I can see other apps doing it: VirtualBox can name each virtual machine
> it launches as: "VBox: THENAME"
>
> Is the functionnality exposed somewhere that I've missed in gstreamer's
> pulse source/sink API? and in pygst?

It's a pulseaudio feature. See:
http://0pointer.de/blog/projects/tagging-audio.html
and
http://pulseaudio.org/wiki/ApplicationProperties

Cheers


------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel