Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » Getting default audio source and sink (devices) in the GNOME-desktop. [RSS Feed]

#1 Jan. 9, 2011 13:37:50

Osmo A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Getting default audio source and sink (devices) in the GNOME-desktop.


Hello,How can I read the default values for audio-sink and audio-source inLinux/GNOME-desktop.These values (device names) are set in the GNOME's gnome-volume-controlprogram. Start$ gnome-volume-controlPicture:http://bildr.no/view/796255showing both and 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-stereoIs there a function call in GStreamer or Pulseaudio to get these values,or should I simply read the files.Kindly
Moma Antero

_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » Getting default audio source and sink (devices) in the GNOME-desktop. [RSS Feed]

Board footer

Moderator control

Enjoy the 19th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support