Add resampling/downmix support to DRED encoder

8k, 12k and stereo are mostly untested
2 files changed