On Saturday 11 February 2006 19:36, Steve Underwood wrote:
> Matthew Fredrickson wrote:
> > On Feb 10, 2006, at 10:25 PM, Steve Underwood wrote:
> >> Matthew Fredrickson wrote:
> >>> On Feb 10, 2006, at 1:21 PM, Gerard Saraber wrote:
> DC in the signal through the echo canceller represents a signal the
> canceller's adaption can never eliminate. It fights; it fails; it many
> get very upset trying. DC needs to be eliminated before cancellation.
> A-law/u-law ports are not supposed to give you any DC, but some do. The
> following will estimate and remove DC from the signal. Prime
> "dc_estimate" with zero.
>
> int 16_t dc_removal(int32_t &dc_estimate, int16_t sample)
> {
> dc_estimate += ((((int32_t) sample << 15) - dc_bias) >> 9);
> sample -= (dc_estimate >> 15);
> return sample;
> }
Shouldn't it be *dc_estimate ?
Paul
>
--
Paul Hewlett - CottonPickinMinds - www.cottonpickinminds.co.za
Tel: +27 21 852 8812 Cel: +27 84 420 9282 Fax: +27 86 672 0563
--
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users