BigWhale

PulseAudio in Python

Dec 30th, 2011
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. >>> from pulseaudio import *
  2. >>> la = PulseAudio_Q()
  3. >>> la.start()
  4. >>> sources = la.get_audio_sources()
  5. >>> la.end()
  6. >>> for src in sources:
  7. ... print src[0], src[2]
  8. ...
  9. 0 Monitor of Barts HDMI Audio [Radeon HD 6800 Series] Digital Stereo (HDMI)
  10. 1 Monitor of USB PnP Sound Device Analog Stereo
  11. 2 USB PnP Sound Device Analog Mono
  12. 3 Philips SPC 1330NC Analog Stereo
  13. 4 Monitor of Internal Audio Analog Stereo
  14. 5 Internal Audio Analog Stereo
Advertisement
Add Comment
Please, Sign In to add comment