Re: [LAU] [alsa-devel] USB device gives wrong data?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Wednesday, October 24, 2007 - 10:05 am

On Tuesday 23 October 2007 00:05:13 James Cameron wrote:

>

A better way would be to use a highpass filter.

Use something like:

for (i=0; i<=NUM_SAMPLES; i++) {
hp_last = 0.9999f * hp_last + in[i] - hp_last_in;
hp_last_in = in[i];
out[i] = hp_last;
}

You could optimise that a bit.

Gordon

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAU] [alsa-devel] USB device gives wrong data?, william estrada, (Mon Oct 22, 4:58 pm)
Re: [LAU] [alsa-devel] USB device gives wrong data?, James Cameron, (Mon Oct 22, 11:05 pm)
Re: [LAU] [alsa-devel] USB device gives wrong data?, Gordon JC Pearce, (Wed Oct 24, 10:05 am)