Re: Sending single stream to two different playback devices

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

 



So as an update to what I am doing....I have been trying to get splitcomb working for my purposes as that seems to be the best way to go about this. But, I don't seem to get any audio from the stream. I am trying to do this by connecting the sound port manually to the reverse channel that I am creating using pjmedia_splitcomb_create_rev_channel(..., revch). Once I have my revch pjmedia_port, I am trying to connect it to my sound device using pjmedia_snd_port_connect(snd_dev1, revch); The sound port has already been created.


The idea is to have two revch pjmedia_ports (one for each channel), and then to connect channel 1 to my 1st sound device and channel 2 to my second sound device. This is music, so there is no voice data or anything going back to the sender. 


Has anyone had any experience doing something like this?


From: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> on behalf of Matthew Murphy <mrmdev@xxxxxxxxxxx>
Sent: Friday, July 13, 2018 9:31:05 AM
To: pjsip@xxxxxxxxxxxxxxx
Subject: Sending single stream to two different playback devices
 

Greetings everyone,


I am attempting a little experiment to send a single audio stream to two different playback devices. I am using version 2.5.5. I have incoming audio (only one-way communication) via multicast and have the pjmedia_stream hitting my application code. I have two separate channels that I want to push this audio to. 


What I have tried to do is take the stream and connect to my two different playback devices using pjmedia_snd_port_connect. But, I get very choppy audio - almost like half the data is going to one device and the other half going to the other. When the stream comes in to a single device however, it sounds great. 


Now, I know I can monkey with my asound.conf to create a single bridged channel. That isn't ideal for me in the long term, but I may have no other choice.


So to make this a simple question: Does anyone have any ideas on how I can take a single pjmedia_stream and play it to two separate playback devices?


Thanks for any help! 



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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