;-) *PJMEDIA_RESAMPLE_DONT_DESTROY_DN* Do not destroy downstream port when resample port is destroyed.I missed this when I check document before. PJSIP document is most best one I can see of opensource projects. Thank you, guys. regards, Gang On Thu, Jul 3, 2008 at 3:52 PM, Nanang Izzuddin <nanang at pjsip.org> wrote: > Hi Gang, > > Yes, you could, please see the doc > http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__RESAMPLE__PORT.htm > ;) > > Regards, > nanang > > > 2008/7/3 Gang Lau <gangban.lau at gmail.com>: > > Hi, > > We want to stream audio to remote network program. > > There are two sound devices. One is opened as 44100 clockrate, the > other > > is opened as 16000 clockrate. > > The media stream we created is using G.711 U-LAW. > > > > snd_port_44k ----- > > switching ----- g.711 stream > > snd_port_16k ---- > > > > We need switch the snd port connected to stream based on the > application > > request. Yes, I could create a conference bridge and plug > > three media port above to slove it. But I am wonder whether I cound > > create resample port when switching snd device instead of conf bridge. > > Destroy resample port will also destroy downstream port.Could we only > > destroy resample port itself? > > > > regards, > > > > Gang > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080703/865d9a77/attachment-0001.html