Getting default audio source and sink (devices) in the GNOME-desktop.
- From: Osmo Antero Maatta <osmoma gmail com>
- To: gtk-list gnome org
- Subject: Getting default audio source and sink (devices) in the GNOME-desktop.
- Date: Sun, 09 Jan 2011 14:37:29 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]