SDL_mixer.h
changeset 817 aef7a1784ffd
parent 777 92882ef2ab81
child 824 dd6b29358ea3
     1.1 --- a/SDL_mixer.h	Sat Oct 21 04:03:49 2017 -0700
     1.2 +++ b/SDL_mixer.h	Sat Oct 21 17:00:00 2017 +0300
     1.3 @@ -205,17 +205,17 @@
     1.4     This can be used to provide real-time visual display of the audio stream
     1.5     or add a custom mixer filter for the stream data.
     1.6  */
     1.7 -extern DECLSPEC void SDLCALL Mix_SetPostMix(void (*mix_func)(void *udata, Uint8 *stream, int len), void *arg);
     1.8 +extern DECLSPEC void SDLCALL Mix_SetPostMix(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);
     1.9  
    1.10  /* Add your own music player or additional mixer function.
    1.11     If 'mix_func' is NULL, the default music player is re-enabled.
    1.12   */
    1.13 -extern DECLSPEC void SDLCALL Mix_HookMusic(void (*mix_func)(void *udata, Uint8 *stream, int len), void *arg);
    1.14 +extern DECLSPEC void SDLCALL Mix_HookMusic(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);
    1.15  
    1.16  /* Add your own callback for when the music has finished playing or when it is
    1.17   * stopped from a call to Mix_HaltMusic.
    1.18   */
    1.19 -extern DECLSPEC void SDLCALL Mix_HookMusicFinished(void (*music_finished)(void));
    1.20 +extern DECLSPEC void SDLCALL Mix_HookMusicFinished(void (SDLCALL *music_finished)(void));
    1.21  
    1.22  /* Get a pointer to the user data for the current music hook */
    1.23  extern DECLSPEC void * SDLCALL Mix_GetMusicHookData(void);
    1.24 @@ -228,7 +228,7 @@
    1.25   *  inside the audio callback, or SDL_mixer will explicitly lock the audio
    1.26   *  before calling your callback.
    1.27   */
    1.28 -extern DECLSPEC void SDLCALL Mix_ChannelFinished(void (*channel_finished)(int channel));
    1.29 +extern DECLSPEC void SDLCALL Mix_ChannelFinished(void (SDLCALL *channel_finished)(int channel));
    1.30  
    1.31  
    1.32  /* Special Effects API by ryan c. gordon. (icculus@icculus.org) */
    1.33 @@ -252,7 +252,7 @@
    1.34   *
    1.35   * DO NOT EVER call SDL_LockAudio() from your callback function!
    1.36   */
    1.37 -typedef void (*Mix_EffectFunc_t)(int chan, void *stream, int len, void *udata);
    1.38 +typedef void (SDLCALL *Mix_EffectFunc_t)(int chan, void *stream, int len, void *udata);
    1.39  
    1.40  /*
    1.41   * This is a callback that signifies that a channel has finished all its
    1.42 @@ -263,7 +263,7 @@
    1.43   *
    1.44   * DO NOT EVER call SDL_LockAudio() from your callback function!
    1.45   */
    1.46 -typedef void (*Mix_EffectDone_t)(int chan, void *udata);
    1.47 +typedef void (SDLCALL *Mix_EffectDone_t)(int chan, void *udata);
    1.48  
    1.49  
    1.50  /* Register a special effect function. At mixing time, the channel data is
    1.51 @@ -613,7 +613,7 @@
    1.52  /* Set/Get/Iterate SoundFonts paths to use by supported MIDI backends */
    1.53  extern DECLSPEC int SDLCALL Mix_SetSoundFonts(const char *paths);
    1.54  extern DECLSPEC const char* SDLCALL Mix_GetSoundFonts(void);
    1.55 -extern DECLSPEC int SDLCALL Mix_EachSoundFont(int (*function)(const char*, void*), void *data);
    1.56 +extern DECLSPEC int SDLCALL Mix_EachSoundFont(int (SDLCALL *function)(const char*, void*), void *data);
    1.57  
    1.58  /* Get the Mix_Chunk currently associated with a mixer channel
    1.59      Returns NULL if it's an invalid channel, or there's no chunk associated.