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) (www.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?
Le lundi 06 juin 2005 ? 20:19 -0500, Dragon a ?crit :> 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".Then you might be having xRUN problems or something like that. In all cases, the problem is in your code and has nothing to do with Speex. Jean-Marc> -Dragon > (dragon@dazoe.net) > (www.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? > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >-- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbrooke
I have done some tests and somehow about 50 0's are at the beginning of the first frame only after it goes through speex. where could that have come from. and if it repeats like that that could be the "tick" and the reason why the out buffer "grows". -Dragon (dragon@dazoe.net) (www.dazoe.net) Jean-Marc Valin wrote:> Le lundi 06 juin 2005 ? 20:19 -0500, Dragon a ?crit : > >>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". > > > Then you might be having xRUN problems or something like that. In all > cases, the problem is in your code and has nothing to do with Speex. > > Jean-Marc > > >> -Dragon >> (dragon@dazoe.net) >> (www.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? >> >>_______________________________________________ >>Speex-dev mailing list >>Speex-dev@xiph.org >>http://lists.xiph.org/mailman/listinfo/speex-dev >>