mixer.c
changeset 817 aef7a1784ffd
parent 801 46acd70caa6a
child 821 ebb26212a00f
     1.1 --- a/mixer.c	Sat Oct 21 04:03:49 2017 -0700
     1.2 +++ b/mixer.c	Sat Oct 21 17:00:00 2017 +0300
     1.3 @@ -79,14 +79,14 @@
     1.4  
     1.5  
     1.6  /* Support for hooking into the mixer callback system */
     1.7 -static void (*mix_postmix)(void *udata, Uint8 *stream, int len) = NULL;
     1.8 +static void (SDLCALL *mix_postmix)(void *udata, Uint8 *stream, int len) = NULL;
     1.9  static void *mix_postmix_data = NULL;
    1.10  
    1.11  /* rcg07062001 callback to alert when channels are done playing. */
    1.12 -static void (*channel_done_callback)(int channel) = NULL;
    1.13 +static void (SDLCALL *channel_done_callback)(int channel) = NULL;
    1.14  
    1.15  /* Support for user defined music functions */
    1.16 -static void (*mix_music)(void *udata, Uint8 *stream, int len) = music_mixer;
    1.17 +static void (SDLCALL *mix_music)(void *udata, Uint8 *stream, int len) = music_mixer;
    1.18  static void *music_data = NULL;
    1.19  
    1.20  /* rcg06042009 report available decoders at runtime. */
    1.21 @@ -857,7 +857,7 @@
    1.22     This can be used to provide real-time visual display of the audio stream
    1.23     or add a custom mixer filter for the stream data.
    1.24  */
    1.25 -void Mix_SetPostMix(void (*mix_func)
    1.26 +void Mix_SetPostMix(void (SDLCALL *mix_func)
    1.27                      (void *udata, Uint8 *stream, int len), void *arg)
    1.28  {
    1.29      Mix_LockAudio();
    1.30 @@ -869,7 +869,7 @@
    1.31  /* Add your own music player or mixer function.
    1.32     If 'mix_func' is NULL, the default music player is re-enabled.
    1.33   */
    1.34 -void Mix_HookMusic(void (*mix_func)(void *udata, Uint8 *stream, int len),
    1.35 +void Mix_HookMusic(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len),
    1.36                                                                  void *arg)
    1.37  {
    1.38      Mix_LockAudio();
    1.39 @@ -888,7 +888,7 @@
    1.40      return(music_data);
    1.41  }
    1.42  
    1.43 -void Mix_ChannelFinished(void (*channel_finished)(int channel))
    1.44 +void Mix_ChannelFinished(void (SDLCALL *channel_finished)(int channel))
    1.45  {
    1.46      Mix_LockAudio();
    1.47      channel_done_callback = channel_finished;