Hello, I posted a patch here to resolve your problem, few weeks ago. Because in 1.4 branch, the legacy disapeared :-( Benny could you integrate this patch or fixe the problem, pls. Regards Samuel > Message du 14/10/09 17:21 > De : "Dan Arrhenius" > A : "pjsip list" > Copie ? : > Objet : Re: [pjsip] Replacing the audio backend in pjsua > > > It didn't work for me to define PJMEDIA_AUDIO_DEV_HAS_LEGACY_DEVICE. I should probably > make it clear that I'm using pjsua-lib, so I don't initialize the audio directly in my code. > > In audiodev.c there is support for maximum 16(MAX_DRIVERS) audio device factories, but > they are added and initialized statically, and in my case no driver at all is added :-( > Might I suggest the ability to dynamically add audio device factories, for example > 'pjmedia_aud_subsys_add_driver(...)'. > > Best regards, > Dan > > > Benny Prijono wrote: > > On Wed, Oct 14, 2009 at 5:45 PM, Dan Arrhenius wrote: > >> Hello, > >> I've been working with pjproject 1.0.x and want to upgrade to the latest > >> version. > >> How can I replace the audio back-end in pjsua with my own using the new > >> audio subsystem? With the old version I configured pjproject with > >> '--enable-ext-sound' and supplied rules to build the audio back-end in > >> user.mak. > >> > >> As I understand it all available audio back-ends are hard-coded in > >> audiodev.c (PORTAUDIO, WMME, SYMB_VAS, SYMB_APS, and SYMB_MDA), and there is > >> no way of dynamically add a new audio driver. Or am I missing something? > >> Do I have to modify audiodev.c to get my own audio back-end in pjsua? I want > >> to modify as little code in pjproject as possible to ease maintenance. > >> > >> > > > > In http://trac.pjsip.org/repos/wiki/Audio_Dev_API there is a guide on > > how to access legacy device using the new API (see under > > PJMEDIA_AUDIO_DEV_HAS_LEGACY_DEVICE). I have not tested it with > > --enable-ext-sound, but it's supposed to work. :) > > > > Cheers > > Benny > > > > _______________________________________________ > > 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 > > > > _______________________________________________ > 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 > > ---------------------------------------------------------------------------- Laposte.net f?te ses 10 ans ! Gratuite, garantie ? vie et d?j? utilis?e par des millions d'internautes... vous aussi, pour votre adresse e-mail, choisissez laposte.net. Laposte.net, bien + qu'une messagerie ---------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091014/b47f0e56/attachment.html>