/[svn]/linuxsampler/trunk/src/common/RTMath.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/RTMath.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3053 by schoenebeck, Wed Jul 13 15:51:06 2016 UTC revision 3054 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC
# Line 123  class RTMathBase { Line 123  class RTMathBase {
123           * @param n - amount of sample values applied so far           * @param n - amount of sample values applied so far
124           * @returns new average value of all summed values (including the new @a sample)           * @returns new average value of all summed values (including the new @a sample)
125           */           */
126          inline static float RelativeSummedAvg(float current, float sample, int n) {          template<typename T_int>
127            inline static float RelativeSummedAvg(float current, float sample, T_int n) {
128              return current + (sample - current) / float(n);              return current + (sample - current) / float(n);
129          }          }
130    

Legend:
Removed from v.3053  
changed lines
  Added in v.3054

  ViewVC Help
Powered by ViewVC