<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi, <BR>
I use SpeexEcho in my own softphone using MGCP protocol register to a PBX under WindowsXP in my laptop.<BR>
I make a call:<BR>
softphone ---> PBX ----> MediaGateWay ---PotsLine---> Traditional Phone.<BR>
In the other side(TraditionalPhone), I did not here any echo voice, SpeexEcho works well. <BR>
<BR>
But, if I let laptop to make some sounds, such as play music, I heard all the voice returned back in TraditionalPhone. It seems SpeexEcho stops to work.<BR>
<BR>
<BR>
What I have done In my softPhone project with SpeexEcho are these:<BR>
1. prepare a buffer with 4000 bytes deep.<BR>
2. "state = speex_echo_state_init( 160, 1280 )"<BR> then:<BR>
3. put waveData(wHdr) into buffer after "waveOutWrite(hWaveOut, wHdr, sizeof(*wHdr))"<BR>
4. in "WaveInCallback" function: Get waveData From buffer, and use "spxec_echo_cancel(state, waveInData, DataGotFromBuffer, tmpBuffer,0)"<BR>
5. then push tmpBuffer to Encode Module, package to G.729 to network.<BR> <BR>Nick<BR>MSN: <A href="mailto:drawncat@hotmail.com">drawncat at hotmail.com</A><BR><BR><br /><hr />用 Windows Live Spaces 展示个性自我,与好友分享生活! <a href='http://spaces.live.com/?page=HP' target='_new'>了解更多信息!</a></body>
</html>