First of all a big "thanks!" for offering such a nice and easy to use resampling library for free use. You've made my life a lot easier... :)
I've successfully implemented r8brain in my freeware audio converter tool. But I've a few questions, if you don't mind:
(1) For 6 channel audio data I'm calling r8b_executeMem2 with 48000 samples of channel 1, then with 48000 samples of channel 2, then with 48000 samples of channel 3 etc. When I've fed 48000 samples of channel 6, I'm again beginning with channel 1. Now I'm wondering: r8brain can't know which channel I'm feeding. Doesn't that hurt resampling or dithering quality? Because r8brain can't really store any "history" data?
(2) Let's say I want to resample from "48000" to "50500.5". Now I'm feeding r8brain 48000 samples. Obviously r8brain cannot really output 50500.5 samples. So it has to either output 50500.0 or 50501.0 samples. Now if I do this in a loop I'm missing 0.5 samples each second (or I have 0.5 samples too many each second). What is the best way to handle this? Do I need to feed 96000 samples so that I can receive 101001 samples? That's no big problem for 48000 -> 50500.5. But how can I solve this when I have really weird output rates, e.g. 48000.00123456789? Is there an easy general way to solve this?
(3) If I feed 48000 samples at a time, r8brain cannot "mix"/interpolate the sample number 47999 of frame 1 with sample 0 of frame 2. Doesn't that hurt audio quality? Of course the problem is only there once every second if I feed 48000 samples, but still?
Maybe these are stupid questions. I'm just wondering how to use r8brain in the best possible way. Thanks very much... :)
