Possible problem with pjmedia_aud_dev_lookup() and devices of the same name

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

 



Hi,

I just ran into a situation where I had playback and recording audio  
device with different IDs, but with the same string in the name. When  
I set my application to use this device for both recording and  
playback, using pjmedia_aud_dev_lookup() only returned the first  
match, meaning that the returned device was inappropriate for either  
recording or playback. I resolved it by manually iterating through all  
the audio devices and checking the input_count or output_count.

However, you guys may want to consider adding a flag to  
pjmedia_aud_dev_lookup() to specify if we are looking for a recording  
or playback device. For the record, this problem occurred on OS-X.

Ruud Klaver
AG Projects



[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