enumerate audio devices

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

 



Hi Bram,
   thanks for useful information.
I executed pa_devs.exe on my machine and in pa_devs_out.txt I've all
devices.
I think if I use Pa_GetDeviceCount in my project, it will list correctly
devices.

I'm working on softphone GUI, on Visual Studio C++ 2005; in my project I
call libpjproject-i386-Win32-vc8-Debug.lib,
compiled in my machine on pjproject-1.5.5.

To use Pa_GetDeviceCount, I must re-compile libproject with SVN trunk ?

I probed this:
   #include <portaudio.h>
.....
   count = Pa_GetDeviceCount();

but VS2005 say :
"libpjproject-i386-Win32-vc8-Debug.lib(pa_win_ds.obj) : error LNK2019:
s?mbolo externo __imp__GetDesktopWindow at 0 sin resolver al que se hace
referencia en la funci?n _InitOutputBuffer"

Please, thank you for help and sorry for
A: my bad english
B: my poor C skill

Gino.

>Hi,
>
>Gino Maffeo wrote:
>>    I cannot enumerate audio devices on my machine.
>> pjmedia_snd_get_dev_count() always return 0.
>
>I've had a similar problem on an Asus EEE PC 1005P with Ubuntu 9.10.
Interestingly I was also using an external USB dongle (Terratec Aureon Dual
USB).
>
>It turned out that Portaudio (or at least the version that ships with
PJSIP) was also returning zero devices. You can use the Portaudio function
Pa_GetDeviceCount to see if the problem is in there. Do other programs using
Portaudio (e.g. Audacity) detect your sound cards?
>
>I fixed it by compiling PJSIP with the PortAudio libraries installed on the
system (the version shipped with Ubuntu) instead of the version that ships
with PJSIP. See ./configure --help on the --with-external-pa option. NB:
this option is currently only available in SVN trunk, not in 1.5.5.
>
>Regards,
>
>Bram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100419/35612648/attachment.html>


[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