Hello, i working on a VoIP app and i'm useing TCP to keep packets in order that's not my issue tho, I've solved my cpu useage problem but now i have a tick sound every time i fill a buffer there is a tick does the decoder add a small amount of sicelence to each frame or what else could it be? -- -Dragon (dragon@dazoe.net) (dazoe.net)
Repeat after me: "TCP and VoIP don't mix". You get high latency and the tick you're getting is probably caused by the fact that you'll never get two soundcards with the exact same sampling rate (e.g. one will do 7999 Hz and the other 8001 Hz). What you need is RTP/UDP and a jitter buffer. Jean-Marc Le lundi 06 juin 2005 ? 16:12 -0500, Dragon a ?crit :> Hello, > i working on a VoIP app and i'm useing TCP to keep packets in order > that's not my issue tho, I've solved my cpu useage problem but now i > have a tick sound every time i fill a buffer there is a tick does the > decoder add a small amount of sicelence to each frame or what else could > it be?-- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universite de Sherbrooke
Well I've comverted to UDP but still have the tick and it can't be the diff soundcards cause it does it on the same computer. Also the wave out buffer keeps growing as if extra data is comming from somewhere eg: the wave out plays just as fast as the wave in so the wave out buffer should not "grow". -Dragon (dragon@dazoe.net) (dazoe.net) Jean-Marc Valin wrote:> Repeat after me: "TCP and VoIP don't mix". You get high latency and the > tick you're getting is probably caused by the fact that you'll never get > two soundcards with the exact same sampling rate (e.g. one will do 7999 > Hz and the other 8001 Hz). What you need is RTP/UDP and a jitter buffer. > > Jean-Marc > > Le lundi 06 juin 2005 ? 16:12 -0500, Dragon a ?crit : > >>Hello, >> i working on a VoIP app and i'm useing TCP to keep packets in order >>that's not my issue tho, I've solved my cpu useage problem but now i >>have a tick sound every time i fill a buffer there is a tick does the >>decoder add a small amount of sicelence to each frame or what else could >>it be?