[Speex-dev] 100% CPU usage
Jean-Marc.Valin at USherbrooke.ca
Tue Apr 26 08:50:26 PDT 2005
Well, just trace it, how many times are you calling speex_decode_int()?
I would personally expect that the bug is in your code, though.
Le mardi 26 avril 2005 à 07:56 -0700, Tay YueWeng a écrit :
> Dear all,
> I am using speex 1.17 at this moment, everything works
> However, I face a problem when no packet arrived from
> network for a few second, my CPU usage is 100%. I step
> though my code and seems that (not confirmed) the
> speaker callback WaveOutCallback() function which call
> speex_decode_int(decoder_state, NULL, shortData)
> (when no data arrived for PLC purpose) seems to
> consume a lot of CPU slice. Is this normal or I am
> making a mistake other portion of the program.
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> Speex-dev mailing list
> Speex-dev at xiph.org
Jean-Marc Valin <Jean-Marc.Valin at USherbrooke.ca>
Université de Sherbrooke
More information about the Speex-dev