Skip to content
Browse files

Date: Fri, 20 Aug 2004 08:31:20 +0200

From: "Markus F.X.J. Oberhumer"
Subject: [SDL-CVS][patch] add missing SDLCALL to headers

the small patch attached below (against current CVS) adds some missing SDLCALL
decorations to callback types and arguments.

Unfortunately one of these changes breaks your gen{def,exp}.pl scripts which
should be changed to use non-greedy regular expression matching...
  • Loading branch information
slouken committed Aug 20, 2004
1 parent edc7352 commit b8d8e357664be71daa0b8063776ddc7137e82c8d

File 1 of 8 in b8d8e35

@@ -59,7 +59,7 @@ typedef struct SDL_AudioSpec {
Once the callback returns, the buffer will no longer be valid.
Stereo samples are stored in a LRLRLR ordering.
void (*callback)(void *userdata, Uint8 *stream, int len);
void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len);
void *userdata;
} SDL_AudioSpec;

@@ -94,7 +94,7 @@ typedef struct SDL_AudioCVT {
int len_cvt; /* Length of converted audio buffer */
int len_mult; /* buffer must be len*len_mult big */
double len_ratio; /* Given len, final size is len*len_ratio */
void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
int filter_index; /* Current audio conversion function */
} SDL_AudioCVT;

0 comments on commit b8d8e35

Please sign in to comment.