[pulseaudio-discuss] Device GUID like identifier

Lennart Poettering lennart at poettering.net
Thu Jun 10 02:47:52 PDT 2010

On Thu, 10.06.10 15:06, Brendon Costa (brendon.j.costa at gmail.com) wrote:


> I am integrating Pulse Audio into a cross platform VoIP API at work.
> We currently allow a user of our API to use a "GUID" that is simply a
> unique identifier for a audio device to identify a device. Thus they
> can save this to a preferences file for example and on next load of
> the app still be using the same audio device they were using if it is
> available.
> Is there any such source/sink identifier (or combination of
> identifiers) I can use for and be sure it will uniquely identify a
> device across system restarts?

You should not try to outsmart PA in the choice of devices for you.

That said, what you are looking for is usually encoded in the
PA_PROP_DEVICE_SERIAL property of the devices. It is only set if such a
serial number exists for a device.

But again, if you want to use this then you are probably doing things
wrong in the context of PA.


Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the pulseaudio-discuss mailing list