Hi Jozsef,
this approach sounds interesting.
Do have you have some source code available ?
Thanks
Mark
-----Original Message-----
From: speex-dev-bounces at xiph.org [mailto:speex-dev-bounces at xiph.org] On
Behalf Of Jozsef Vass
Sent: Friday, September 25, 2009 11:43 PM
To: mark_schilling at gmx.de
Cc: speex-dev at xiph.org
Subject: Re: [Speex-dev] High CPU usage
I have run into the same issue. Before sending a frame to encoder, I calculate
the energy. If it is less than a small threshold, I simply replace this frame
with "silence frame," which is 320 random samples of values smaller
than 3 (16 kHz).
BTW, I have only experience this problem with certain USB headsets that provide
you all 0 samples when muted.
Jozsef
_______________________________________________
Speex-dev mailing list
Speex-dev at xiph.org
http://lists.xiph.org/mailman/listinfo/speex-dev
--
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
f?r nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
Mark Schilling <mark_schilling <at> gmx.de> writes:> > Hi Jozsef, > > this approach sounds interesting. > Do have you have some source code available ? > > Thanks > > Mark > > -----Original Message----- > From: speex-dev-bounces <at> xiph.org [mailto:speex-dev-bounces <at> xiph.org]On Behalf Of Jozsef Vass> Sent: Friday, September 25, 2009 11:43 PM > To: mark_schilling <at> gmx.de > Cc: speex-dev <at> xiph.org > Subject: Re: [Speex-dev] High CPU usage > > I have run into the same issue. Before sending a frame to encoder, I calculatethe energy. If it is less than a> small threshold, I simply replace this frame with "silence frame," which is320 random samples of values> smaller than 3 (16 kHz). > > BTW, I have only experience this problem with certain USB headsets thatprovide you all 0 samples when muted.> > Jozsef > > > _______________________________________________ > Speex-dev mailing list > Speex-dev <at> xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >Hi, I am having a similar problem. Definitely when some head phones are muted I get high CPU usage. Also it seems on some older machines using Pentium 4 the CPU usage is very high. Does compiling speex API with DISABLE_FLOAT_API and DISABLE_VBR solve the problem? Thanks Tanmay