comparison src/audio/SDL_audio.c @ 1769:290b5baf2fca

Fixed bug #215 The current SVN trunk is missing the SDLCALL specifier at numerous locations. It has to be added for all (possibly user provided) callbacks. I stumbled over this while creating a makefile for the OpenWatcom compiler for Win32.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 May 2006 03:40:06 +0000
parents 12b6d331d82a
children 5605a9820134
comparison
equal deleted inserted replaced
1768:814f9f2c7a33 1769:290b5baf2fca
118 #if SDL_AUDIO_DRIVER_AHI 118 #if SDL_AUDIO_DRIVER_AHI
119 static int audio_configured = 0; 119 static int audio_configured = 0;
120 #endif 120 #endif
121 121
122 /* The general mixing thread function */ 122 /* The general mixing thread function */
123 int SDL_RunAudio(void *audiop) 123 int SDLCALL SDL_RunAudio(void *audiop)
124 { 124 {
125 SDL_AudioDevice *audio = (SDL_AudioDevice *)audiop; 125 SDL_AudioDevice *audio = (SDL_AudioDevice *)audiop;
126 Uint8 *stream; 126 Uint8 *stream;
127 int stream_len; 127 int stream_len;
128 void *udata; 128 void *udata;
129 void (*fill)(void *userdata,Uint8 *stream, int len); 129 void (SDLCALL *fill)(void *userdata,Uint8 *stream, int len);
130 int silence; 130 int silence;
131 #if SDL_AUDIO_DRIVER_AHI 131 #if SDL_AUDIO_DRIVER_AHI
132 int started = 0; 132 int started = 0;
133 133
134 /* AmigaOS NEEDS that the audio driver is opened in the thread that uses it! */ 134 /* AmigaOS NEEDS that the audio driver is opened in the thread that uses it! */