[pjsip] pjsua sound device problem

feng_tian at 126.com feng_tian at 126.com
Thu Feb 21 20:38:25 EST 2008


Hi:
I've successfully compliled the pjsua, but when I was trying to run the application, it gives me "can't open sound card" error, then I add the sound dev id parameter:
./pjsua --playback-dev=0 --capture-dev=0
but the app still complains:

15:47:02.970 pjsua_media.c pjsua_set_snd_dev(capture_dev 0,playback_dev 0): attempting to open devices @16000 Hz
15:47:02.970 pjsua_media.c ..failed: Invalid sound device ID (PJMEDIA_ESNDINDEVID)
15:47:02.970 pjsua_media.c pjsua_set_snd_dev(capture_dev 0,playback_dev 0): attempting to open devices @22050 Hz
15:47:02.970 pjsua_media.c ..failed: Invalid sound device ID (PJMEDIA_ESNDINDEVID)
15:47:02.970 pjsua_media.c pjsua_set_snd_dev(capture_dev 0,playback_dev 0): attempting to open devices @44100 Hz
15:47:02.970 pjsua_media.c ..failed: Invalid sound device ID (PJMEDIA_ESNDINDEVID)
15:47:02.971 pjsua_media.c pjsua_set_snd_dev(capture_dev 0,playback_dev 0): attempting to open devices @48000 Hz
15:47:02.971 pjsua_media.c ..failed: Invalid sound device ID (PJMEDIA_ESNDINDEVID)
15:47:02.971 pjsua_media.c pjsua_set_snd_dev(capture_dev 0,playback_dev 0): attempting to open devices @11025 Hz
15:47:02.971 pjsua_media.c ..failed: Invalid sound device ID (PJMEDIA_ESNDINDEVID)
15:47:02.971 pjsua_media.c pjsua_set_snd_dev(capture_dev 0,playback_dev 0): attempting to open devices @32000 Hz
15:47:02.971 pjsua_media.c ..failed: Invalid sound device ID (PJMEDIA_ESNDINDEVID)
15:47:02.971 pjsua_media.c pjsua_set_snd_dev(capture_dev 0,playback_dev 0): attempting to open devices @8000 Hz
15:47:02.971 pjsua_media.c ..failed: Invalid sound device ID (PJMEDIA_ESNDINDEVID)
15:47:02.971 pjsua_media.c Unable to open sound device: Invalid sound device ID (PJMEDIA_ESNDINDEVID) [status=220202]
15:47:02.971 pjsua_core.c Shutting down...

Then I tried ./pjsua --playback-dev=0 --capture-dev=0
It gives me the invalid sample rate error.

Is there anyone can help me, thanks in advance.

BR
Feng



已 经 超 过 100 万 台 电 脑 安 装 了 网 易 有 道 免 费 英 汉 词 典 , 点 击 此 处 可 以 快 速 下 载
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080222/9c2a057c/attachment.html>


More information about the pjsip mailing list