12345678910111213141516171819202122 |
- $OpenBSD: patch-akode_lib_crossfader_cpp,v 1.1 2017/04/27 12:44:03 espie Exp $
- --- akode/lib/crossfader.cpp.orig Thu Apr 27 14:23:38 2017
- +++ akode/lib/crossfader.cpp Thu Apr 27 14:24:05 2017
- @@ -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 U> 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, AudioFr
- }
-
- // 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 U> class Arithm>
- static bool _readFrame(AudioFrame* in, int& pos, AudioFrame* frame)
- {
- T** indata = (T**)frame->data;
|