patch-akode_lib_crossfader_cpp 1.0 KB

12345678910111213141516171819202122
  1. $OpenBSD: patch-akode_lib_crossfader_cpp,v 1.1 2017/04/27 12:44:03 espie Exp $
  2. --- akode/lib/crossfader.cpp.orig Thu Apr 27 14:23:38 2017
  3. +++ akode/lib/crossfader.cpp Thu Apr 27 14:24:05 2017
  4. @@ -27,7 +27,7 @@ namespace aKode {
  5. CrossFader::CrossFader(unsigned int time) : time(time),pos(0) {}
  6. // T is the input/output type, S is the fast arithmetics type, Div is a division method
  7. -template<typename T, typename S, template<typename S> class Arithm>
  8. +template<typename T, typename S, template<typename U> class Arithm>
  9. static bool _doFrame(AudioFrame* in, int& pos, AudioFrame* frame)
  10. {
  11. T** indata1 = (T**)in->data;
  12. @@ -66,7 +66,7 @@ static bool _doFrame(AudioFrame* in, int& pos, AudioFr
  13. }
  14. // T is the input/output type, S is the fast arithmetics type, Arithm defines devisions
  15. -template<typename T, typename S, template<typename S> class Arithm>
  16. +template<typename T, typename S, template<typename U> class Arithm>
  17. static bool _readFrame(AudioFrame* in, int& pos, AudioFrame* frame)
  18. {
  19. T** indata = (T**)frame->data;