On Mon, Aug 17, 2009 at 09:46:06AM +0300, Nedko
Arnaudov wrote:
Ken Restivo <ken(a)restivo.org> writes:
Also, strangely, it uses no CPU, until I play
something through it,
then it demands a lot of CPU and doesn't stop even if I stop putting
sound through it.
This sounds like denormalize problem. What CPU are you on? Does it help
if you supply constant low level noise to the input? By using the
noise from soundcard input for example.
Interesting. The CPU is this:
http://restivo.org/projects/eee/cpu.txt
Once it starts using up CPU, putting sound through doesn't seem to make a difference.
It's like it hits a wall as soon as some sound goes in, and doesn't ever back off
again.
-ken
ups, have only check it with guitar, there you have always a small noise
input.
Build it with the -mfpmath=sse flag enable. That would help. Or add a
denormal protection to it .
@211
for (int i=0; i<count; i++) {
float S0[2];
float fTemp0 = input0[i];
- S0[0] = fTemp0;
+ S0[0] = fTemp0 + 1e-20;