[icecast] question on downsampling

Jack Moffitt
Fri, 06 Aug 2004 14:22:38 -0000

> 2. Downsample in DarkIce, by simple means. For example, from 44.1kHz ->
> 22.05kHz, simply send one sample for every two imput samples, taking
> their average value. This shouldn't result in large computing overhead,
> and I could also do it for vorbis.

This isn't good enough.  Just rip out lame's downsampling code (or
sox's) and use that (as long as your also under a compatible license).
Those are both pretty good.  Averaging every two samples just doesn't
cut it :)

jack.