Alsa under pj trouble

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

 



First, thanks to all for previous helps, especially Bill Gardner.

Having studied much ambiguous web pages and email list postings, I appear to be blind or dense:
I can call
pjsua_player_create("RudeNoise.wav", PJMEDIA_NO_LOOP, &WavFilePlayerId);
then
WavPlayerConfPortNo = pjsua_player_get_conf(WavFilePlayerId);
then
pjsua_conf_connect(WavPlayerPortNo, pjsua_call_get_conf_port(CurrentCallId));
and the caller hears my wave file.

I want to call
pjsua_alsa_player_create("pcm.chan2_play", &AlsaPlayerId);  // pcm.chan2_play is in /etc/asound.conf
or
pjsua_alsa_player_create("/dev/snd/pcmC0D0p",&AlsaPlayerId); // 'p' is player for pcm device Card 0 Device 0
then
AlsaPlayerConfPortNo = pjsua_alsa_player_get_conf(AlsaPlayerId);
then
pjsua_conf_connect(pjsua_call_get_conf_port(CurrentCallId), AlsaPlayerConfPortNo);
and hear the caller's voice on my alsa dev speakers.

Alas, the pjsua_alsa_* calls listed above appear not to exist.

Please pass me a few clues how to carry out this operation using the existing PJmumble entrypoints.

Brian, still searching for Alsa Salsa.


---------------------------------------------------------------------------------------------------------------------------- 
Confidentiality Requirement: This communication, including any attachment(s), may contain confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, you are hereby notified that you have received this communication in error and any unauthorized review, use, disclosure, dissemination, distribution or copying of it or its contents is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by telephone or e-mail and destroy all copies of this communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150302/f25e66e6/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