resample.c: Allow user to set the bandwidth.
dsp.c: Fix a couple length calculation bugs.