diff options
Diffstat (limited to 'mix.c')
-rw-r--r-- | mix.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -10,13 +10,12 @@ U_ATTR Pulse mix_sound(Wave w, LENT n) { - Pulse result = 0.0f;; + Pulse result = 0.0; for (LENT i = 0; i < n;) result += *(w+i++); - result /= (float) n; + result /= (NUMT) n; return result; } - |