Sound device enumeration

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

 



Hi,

Currently, all sound device back end of pjmedia (e.g: PortAudio,
pjmedia dsound) enumerates the sound device in the sound device
initialization, and the result is cached. So, to be able to update the
list, you just need to re-init the sound device. Here is the
pseudo-code to do that:

// first, make sure sound device is stopped & disconnected from conference.
pjsua_set_null_snd_dev();
// re-init sound device.
pjmedia_snd_deinit();
pjmedia_snd_init();
// after deciding which sound device to be used, add it to conference.
pjsua_set_snd_dev();


Regards,
nanang


2008/6/4 Ilya Kalinin <ilyak at eimtelecom.com>:
> Hi.
>
>
>
> In my pjsip application I want to update sound devices on the fly. For
> example if I add usb audio device I want to be able to use it without
> restarting the application.
>
> I use function pjsua_enum_snd_devs, but it always return same devices, I
> need to restart application to get updated list. Is there any way I can fix
> this issue.
>
> _______________________________________________
> 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