refresh the list of sound devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
I use pjsua / python 1.6 and I wonder if it is possible to refresh the list of sound devices.
case concerns a USB sound card.
I suppose that the list of sound devices is created once at startup library.


import time
import pjsua as pj
lib = pj.Lib()
lib.init(ua_cfg, log_cfg, med_cfg)
while 1:
      print len(lib.enum_snd_dev())
      time.sleep(5)

I connect my sound device during the loop, and nothing changes.
Of course, if the card is plugged in before the start of the program everything works perfectly.

Little help ?


-- 
?ukasz Wr?blewski
DDarko.org
Hostowisko.pl
NRI.pl



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux