Mercurial > SDL_sound_CoreAudio
changeset 246:170b1400e060
Cast to prevent pointer arithmatic on a (void *).
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 05 Feb 2002 19:00:39 +0000 |
parents | 82a37ef73ae9 |
children | 654f4f66b757 |
files | decoders/wav.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/decoders/wav.c Mon Feb 04 20:06:53 2002 +0000 +++ b/decoders/wav.c Tue Feb 05 19:00:39 2002 +0000 @@ -457,19 +457,19 @@ } /* if */ /* only write first sample frame for now. */ - put_adpcm_sample_frame2(internal->buffer + bw, fmt); + put_adpcm_sample_frame2((Uint8 *) internal->buffer + bw, fmt); fmt->fmt.adpcm.samples_left_in_block--; bw += fmt->sample_frame_size; break; case 1: /* output last sample frame of block... */ - put_adpcm_sample_frame1(internal->buffer + bw, fmt); + put_adpcm_sample_frame1((Uint8 *) internal->buffer + bw, fmt); fmt->fmt.adpcm.samples_left_in_block--; bw += fmt->sample_frame_size; break; default: /* output latest sample frame and read a new one... */ - put_adpcm_sample_frame1(internal->buffer + bw, fmt); + put_adpcm_sample_frame1((Uint8 *) internal->buffer + bw, fmt); fmt->fmt.adpcm.samples_left_in_block--; bw += fmt->sample_frame_size;