src/audio/SDL_audio.c
changeset 1769 290b5baf2fca
parent 1567 12b6d331d82a
child 1794 5605a9820134
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! */