Alsa under pj trouble

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

 



Hi Brian,

You don't want to use pjsua_alsa_xxx calls. If you want to hear the wav 
file on your own speakers then connect the wav player to the master 
sound port (port 0). The caller should already be connected to the 
master sound port when the call connects. If you don't hear the caller 
then something else is wrong.

Regards,

Bill


On 3/2/15, 7:54 AM, Brunner, Brian T. wrote:
> 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.
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150302/d1955d27/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