aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-03-13 07:11:09 -0700
committerChris Robinson <[email protected]>2011-03-13 07:11:09 -0700
commit77ad538e68ce17e29902680d8cce708a2a105b4e (patch)
tree0969edfb5fa7a984b581e8885ed173667017eebb
parentb699aca65b898c90cf94e5c792f3445513538e10 (diff)
Remove more unneeded casts
-rw-r--r--Alc/ALu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 213916e1..70d2a480 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -804,9 +804,9 @@ static void Write_##T##_##chans(ALCdevice *device, T *buffer, ALuint SamplesToDo
samples[1] += DryBuffer[i][c]*Matrix[c][FRONT_RIGHT]; \
} \
bs2b_cross_feed(device->Bs2b, samples); \
- ((T*)buffer)[ChanMap[FRONT_LEFT]] = func(samples[0]); \
- ((T*)buffer)[ChanMap[FRONT_RIGHT]] = func(samples[1]); \
- buffer = ((T*)buffer) + 2; \
+ buffer[ChanMap[FRONT_LEFT]] = func(samples[0]); \
+ buffer[ChanMap[FRONT_RIGHT]] = func(samples[1]); \
+ buffer += 2; \
} \
} \
else \
@@ -818,9 +818,9 @@ static void Write_##T##_##chans(ALCdevice *device, T *buffer, ALuint SamplesToDo
ALfloat samp = 0.0f; \
for(c = 0;c < MAXCHANNELS;c++) \
samp += DryBuffer[i][c] * Matrix[c][chans[j]]; \
- ((T*)buffer)[ChanMap[chans[j]]] = func(samp); \
+ buffer[ChanMap[chans[j]]] = func(samp); \
} \
- buffer = ((T*)buffer) + N; \
+ buffer += N; \
} \
} \
}