comparison decoders/wav.c @ 242:12a9c2e0b00f

Fixed compiler warnings (thanks, Darrell!)
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 04 Feb 2002 13:57:26 +0000
parents c9772a9f5271
children 170b1400e060
comparison
equal deleted inserted replaced
241:f62f7d58e4f4 242:12a9c2e0b00f
411 fmt->fmt.adpcm.nibble = nib; 411 fmt->fmt.adpcm.nibble = nib;
412 return(1); 412 return(1);
413 } /* decode_adpcm_sample_frame */ 413 } /* decode_adpcm_sample_frame */
414 414
415 415
416 static inline void put_adpcm_sample_frame1(Uint8 *_buf, fmt_t *fmt) 416 static inline void put_adpcm_sample_frame1(void *_buf, fmt_t *fmt)
417 { 417 {
418 Uint16 *buf = (Uint16 *) _buf; 418 Uint16 *buf = (Uint16 *) _buf;
419 ADPCMBLOCKHEADER *headers = fmt->fmt.adpcm.blockheaders; 419 ADPCMBLOCKHEADER *headers = fmt->fmt.adpcm.blockheaders;
420 int i; 420 int i;
421 for (i = 0; i < fmt->wChannels; i++) 421 for (i = 0; i < fmt->wChannels; i++)
422 *(buf++) = headers[i].iSamp1; 422 *(buf++) = headers[i].iSamp1;
423 } /* put_adpcm_sample_frame1 */ 423 } /* put_adpcm_sample_frame1 */
424 424
425 425
426 static inline void put_adpcm_sample_frame2(Uint8 *_buf, fmt_t *fmt) 426 static inline void put_adpcm_sample_frame2(void *_buf, fmt_t *fmt)
427 { 427 {
428 Uint16 *buf = (Uint16 *) _buf; 428 Uint16 *buf = (Uint16 *) _buf;
429 ADPCMBLOCKHEADER *headers = fmt->fmt.adpcm.blockheaders; 429 ADPCMBLOCKHEADER *headers = fmt->fmt.adpcm.blockheaders;
430 int i; 430 int i;
431 for (i = 0; i < fmt->wChannels; i++) 431 for (i = 0; i < fmt->wChannels; i++)