summaryrefslogtreecommitdiff
path: root/mix.c
diff options
context:
space:
mode:
Diffstat (limited to 'mix.c')
-rw-r--r--mix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mix.c b/mix.c
index ae1c1ab..987993a 100644
--- a/mix.c
+++ b/mix.c
@@ -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;
}
-