How to attach second audio device?

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

 



Hi,

I guess the second sound device (and so on) can be added to conference
bridge using pjmedia_conf_add_passive_port().

Regards,
nanang


On Thu, Jan 29, 2009 at 10:57 PM, Michael <michael_zurich at yahoo.com> wrote:
> Hi
>
> I want to attach second audio device to conference bridge.
> Device 1 headset, device 2 loudspeakers.
>
> I tried:
>
> // create sound port
> status = pjmedia_snd_port_create(pjsua_var.pool, rec_id2, play_id2,
> clock_rate, channel_count, samples_per_frame, bits_per_sample, 0,
> &snd_port);
>
> // connect sound port to media port
> status = pjmedia_snd_port_connect( snd_port, media_port );
>
> // connect media port to conference bridge
> status = pjmedia_conf_add_port(pjsua_var.mconf, pjsua_var.pool, media_port,
> NULL, NULL);
>
> But how to create a second media port?
> status = pjmedia_null_port_create(pjsua_var.pool, clock_rate, channel_count,
> samples_per_frame, bits_per_sample, &media_port);
>
> does not work...
>
> Any idea?
>
> Michael.
>
>
>
> _______________________________________________
> 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
>
>



[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