Mercurial > SDL_sound_CoreAudio
diff decoders/wav.c @ 401:c42ac9ee2ce4
Fixed "inline" keyword to compile.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 12 Jul 2002 23:16:24 +0000 |
parents | fb519e6028e3 |
children | c66080364dff 50bb9a6cebfe |
line wrap: on
line diff
--- a/decoders/wav.c Thu Jul 11 05:28:52 2002 +0000 +++ b/decoders/wav.c Fri Jul 12 23:16:24 2002 +0000 @@ -72,7 +72,7 @@ /* Better than SDL_ReadLE16, since you can detect i/o errors... */ -static inline int read_le16(SDL_RWops *rw, Uint16 *ui16) +static __inline__ int read_le16(SDL_RWops *rw, Uint16 *ui16) { int rc = SDL_RWread(rw, ui16, sizeof (Uint16), 1); BAIL_IF_MACRO(rc != 1, ERR_IO_ERROR, 0); @@ -82,7 +82,7 @@ /* Better than SDL_ReadLE32, since you can detect i/o errors... */ -static inline int read_le32(SDL_RWops *rw, Uint32 *ui32) +static __inline__ int read_le32(SDL_RWops *rw, Uint32 *ui32) { int rc = SDL_RWread(rw, ui32, sizeof (Uint32), 1); BAIL_IF_MACRO(rc != 1, ERR_IO_ERROR, 0); @@ -92,7 +92,7 @@ /* This is just cleaner on the caller's end... */ -static inline int read_uint8(SDL_RWops *rw, Uint8 *ui8) +static __inline__ int read_uint8(SDL_RWops *rw, Uint8 *ui8) { int rc = SDL_RWread(rw, ui8, sizeof (Uint8), 1); BAIL_IF_MACRO(rc != 1, ERR_IO_ERROR, 0); @@ -322,7 +322,7 @@ #define SMALLEST_ADPCM_DELTA 16 -static inline int read_adpcm_block_headers(Sound_Sample *sample) +static __inline__ int read_adpcm_block_headers(Sound_Sample *sample) { Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; SDL_RWops *rw = internal->rw; @@ -358,9 +358,9 @@ } /* read_adpcm_block_headers */ -static inline void do_adpcm_nibble(Uint8 nib, - ADPCMBLOCKHEADER *header, - Sint32 lPredSamp) +static __inline__ void do_adpcm_nibble(Uint8 nib, + ADPCMBLOCKHEADER *header, + Sint32 lPredSamp) { static const Sint32 max_audioval = ((1<<(16-1))-1); static const Sint32 min_audioval = -(1<<(16-1)); @@ -396,7 +396,7 @@ } /* do_adpcm_nibble */ -static inline int decode_adpcm_sample_frame(Sound_Sample *sample) +static __inline__ int decode_adpcm_sample_frame(Sound_Sample *sample) { Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; wav_t *w = (wav_t *) internal->decoder_private; @@ -435,7 +435,7 @@ } /* decode_adpcm_sample_frame */ -static inline void put_adpcm_sample_frame1(void *_buf, fmt_t *fmt) +static __inline__ void put_adpcm_sample_frame1(void *_buf, fmt_t *fmt) { Uint16 *buf = (Uint16 *) _buf; ADPCMBLOCKHEADER *headers = fmt->fmt.adpcm.blockheaders; @@ -445,7 +445,7 @@ } /* put_adpcm_sample_frame1 */ -static inline void put_adpcm_sample_frame2(void *_buf, fmt_t *fmt) +static __inline__ void put_adpcm_sample_frame2(void *_buf, fmt_t *fmt) { Uint16 *buf = (Uint16 *) _buf; ADPCMBLOCKHEADER *headers = fmt->fmt.adpcm.blockheaders;