--- linuxsampler/trunk/src/common/RTMath.h 2016/07/13 15:51:06 2942 +++ linuxsampler/trunk/src/common/RTMath.h 2016/12/15 12:47:45 3054 @@ -123,7 +123,8 @@ * @param n - amount of sample values applied so far * @returns new average value of all summed values (including the new @a sample) */ - inline static float RelativeSummedAvg(float current, float sample, int n) { + template + inline static float RelativeSummedAvg(float current, float sample, T_int n) { return current + (sample - current) / float(n); }