|
|
|
@ -27,7 +27,7 @@ namespace aKode {
|
|
|
|
|
CrossFader::CrossFader(unsigned int time) : time(time),pos(0) {}
|
|
|
|
|
|
|
|
|
|
// T is the input/output type, S is the fast arithmetics type, Div is a division method
|
|
|
|
|
template<typename T, typename S, template<typename S> class Arithm>
|
|
|
|
|
template<typename T, typename S, template<typename S_Type> class Arithm>
|
|
|
|
|
static bool _doFrame(AudioFrame* in, int& pos, AudioFrame* frame)
|
|
|
|
|
{
|
|
|
|
|
T** indata1 = (T**)in->data;
|
|
|
|
@ -66,7 +66,7 @@ static bool _doFrame(AudioFrame* in, int& pos, AudioFrame* frame)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// T is the input/output type, S is the fast arithmetics type, Arithm defines devisions
|
|
|
|
|
template<typename T, typename S, template<typename S> class Arithm>
|
|
|
|
|
template<typename T, typename S, template<typename S_Type> class Arithm>
|
|
|
|
|
static bool _readFrame(AudioFrame* in, int& pos, AudioFrame* frame)
|
|
|
|
|
{
|
|
|
|
|
T** indata = (T**)frame->data;
|
|
|
|
|