Hi Tanger, Sorry, not sure which implementation you have tried, here are possible configurations of sound device API implementation for Windows: #define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_PORTAUDIO_SOUND #define PJMEDIA_PREFER_DIRECT_SOUND 1 will make use PA with dsound implementation #define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_PORTAUDIO_SOUND #define PJMEDIA_PREFER_DIRECT_SOUND 0 will make use PA with WMME implementation #define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_WIN32_DIRECT_SOUND will make use dsound.c (pjmedia implementation of dsound) In case you haven't seen this thread, it seems related to your problem: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-March/002156.html Regards, nanang 2008/5/7 cat tanger <tanger_wendy at yahoo.com.cn>: > hi,all. > i test directsound voice ,it too bad. but the same option (parament:ptime > =20,quality=6;aec =0) in portaudio sound is very good. > > i test direct sound with: > # define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_WIN32_DIRECT_SOUND > and > # define PJMEDIA_PREFER_DIRECT_SOUND 1 > > can someone tell me why? how can i do ? > > and i know DirectSoundFullDuplexCreate8 can use GUID_DSCFX_CLASS_AEC do aec > function. > anyone do this? > please give me suggestion. > > thanks? > tanger. > > ________________________________ > ???????????? > _______________________________________________ > 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 > >