[gst-devel] Getting default audio source and sink (devices) in the GNOME-desktop.
Osmo Antero Maatta
osmoma at gmail.com
Sun Jan 9 14:36:41 CET 2011
Hello,
How can I read the default values for audio-sink and audio-source in
Linux/GNOME-desktop.
These values (device names) are set in the GNOME's gnome-volume-control
program. Start
$ gnome-volume-control
Picture: http://bildr.no/view/796255 showing both [Input] and [Output]
pages.
The values are stored in user's $HOME/.pulse/ directory.
$ ls ~/.pulse/
b3b6877727df4f4ae34dba2b00000009-default-sink
b3b6877727df4f4ae34dba2b00000009-default-source
...
$ cat ~/.pulse/b3b6877727df4f4ae34dba2b00000009-default-source
alsa_output.pci-0000_04_02.0.analog-stereo
$ cat ~/.pulse/b3b6877727df4f4ae34dba2b00000009-default-sink
alsa_input.pci-0000_00_1b.0.analog-stereo
Is there a function call in GStreamer or Pulseaudio to get these values,
or should I simply read the files.
Kindly
Moma Antero
More information about the gstreamer-devel
mailing list