diff options
author | Chris Robinson <[email protected]> | 2011-03-13 07:11:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-03-13 07:11:09 -0700 |
commit | 77ad538e68ce17e29902680d8cce708a2a105b4e (patch) | |
tree | 0969edfb5fa7a984b581e8885ed173667017eebb | |
parent | b699aca65b898c90cf94e5c792f3445513538e10 (diff) |
Remove more unneeded casts
-rw-r--r-- | Alc/ALu.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; \ } \ } \ } |