[Speex-dev] 100% CPU usage

Jean-Marc Valin 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.

	Jean-Marc

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
> great. 
> 
> 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.
> 
> Regards,
> YueWeng
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
> 
-- 
Jean-Marc Valin <Jean-Marc.Valin at USherbrooke.ca>
Université de Sherbrooke



More information about the Speex-dev mailing list