include/SDL_audio.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 769 b8d311d90021
     1.1 --- a/include/SDL_audio.h	Wed Apr 10 17:12:32 2002 +0000
     1.2 +++ b/include/SDL_audio.h	Thu Apr 11 14:35:16 2002 +0000
     1.3 @@ -105,14 +105,14 @@
     1.4   * have a specific need to specify the audio driver you want to use.
     1.5   * You should normally use SDL_Init() or SDL_InitSubSystem().
     1.6   */
     1.7 -extern DECLSPEC int SDL_AudioInit(const char *driver_name);
     1.8 -extern DECLSPEC void SDL_AudioQuit(void);
     1.9 +extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name);
    1.10 +extern DECLSPEC void SDLCALL SDL_AudioQuit(void);
    1.11  
    1.12  /* This function fills the given character buffer with the name of the
    1.13   * current audio driver, and returns a pointer to it if the audio driver has
    1.14   * been initialized.  It returns NULL if no driver has been initialized.
    1.15   */
    1.16 -extern DECLSPEC char *SDL_AudioDriverName(char *namebuf, int maxlen);
    1.17 +extern DECLSPEC char * SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
    1.18  
    1.19  /*
    1.20   * This function opens the audio device with the desired parameters, and
    1.21 @@ -155,7 +155,7 @@
    1.22   * may modify the requested size of the audio buffer, you should allocate
    1.23   * any local mixing buffers after you open the audio device.
    1.24   */
    1.25 -extern DECLSPEC int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained);
    1.26 +extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained);
    1.27  
    1.28  /*
    1.29   * Get the current audio state:
    1.30 @@ -165,7 +165,7 @@
    1.31  	SDL_AUDIO_PLAYING,
    1.32  	SDL_AUDIO_PAUSED
    1.33  } SDL_audiostatus;
    1.34 -extern DECLSPEC SDL_audiostatus SDL_GetAudioStatus(void);
    1.35 +extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus(void);
    1.36  
    1.37  /*
    1.38   * This function pauses and unpauses the audio callback processing.
    1.39 @@ -174,7 +174,7 @@
    1.40   * data for your callback function after opening the audio device.
    1.41   * Silence will be written to the audio device during the pause.
    1.42   */
    1.43 -extern DECLSPEC void SDL_PauseAudio(int pause_on);
    1.44 +extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on);
    1.45  
    1.46  /*
    1.47   * This function loads a WAVE from the data source, automatically freeing
    1.48 @@ -193,8 +193,7 @@
    1.49   * wave file cannot be opened, uses an unknown data format, or is 
    1.50   * corrupt.  Currently raw and MS-ADPCM WAVE files are supported.
    1.51   */
    1.52 -extern DECLSPEC SDL_AudioSpec *SDL_LoadWAV_RW(SDL_RWops *src, int freesrc,
    1.53 -		 SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);
    1.54 +extern DECLSPEC SDL_AudioSpec * SDLCALL SDL_LoadWAV_RW(SDL_RWops *src, int freesrc, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);
    1.55  
    1.56  /* Compatibility convenience function -- loads a WAV from a file */
    1.57  #define SDL_LoadWAV(file, spec, audio_buf, audio_len) \
    1.58 @@ -203,7 +202,7 @@
    1.59  /*
    1.60   * This function frees data previously allocated with SDL_LoadWAV_RW()
    1.61   */
    1.62 -extern DECLSPEC void SDL_FreeWAV(Uint8 *audio_buf);
    1.63 +extern DECLSPEC void SDLCALL SDL_FreeWAV(Uint8 *audio_buf);
    1.64  
    1.65  /*
    1.66   * This function takes a source format and rate and a destination format
    1.67 @@ -212,7 +211,7 @@
    1.68   * to the other.
    1.69   * This function returns 0, or -1 if there was an error.
    1.70   */
    1.71 -extern DECLSPEC int SDL_BuildAudioCVT(SDL_AudioCVT *cvt,
    1.72 +extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT *cvt,
    1.73  		Uint16 src_format, Uint8 src_channels, int src_rate,
    1.74  		Uint16 dst_format, Uint8 dst_channels, int dst_rate);
    1.75  
    1.76 @@ -224,7 +223,7 @@
    1.77   * cvt->buf should be allocated after the cvt structure is initialized by
    1.78   * SDL_BuildAudioCVT(), and should be cvt->len*cvt->len_mult bytes long.
    1.79   */
    1.80 -extern DECLSPEC int SDL_ConvertAudio(SDL_AudioCVT *cvt);
    1.81 +extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT *cvt);
    1.82  
    1.83  /*
    1.84   * This takes two audio buffers of the playing audio format and mixes
    1.85 @@ -234,7 +233,7 @@
    1.86   * This is provided for convenience -- you can mix your own audio data.
    1.87   */
    1.88  #define SDL_MIX_MAXVOLUME 128
    1.89 -extern DECLSPEC void SDL_MixAudio(Uint8 *dst, const Uint8 *src, Uint32 len, int volume);
    1.90 +extern DECLSPEC void SDLCALL SDL_MixAudio(Uint8 *dst, const Uint8 *src, Uint32 len, int volume);
    1.91  
    1.92  /*
    1.93   * The lock manipulated by these functions protects the callback function.
    1.94 @@ -242,13 +241,13 @@
    1.95   * callback function is not running.  Do not call these from the callback
    1.96   * function or you will cause deadlock.
    1.97   */
    1.98 -extern DECLSPEC void SDL_LockAudio(void);
    1.99 -extern DECLSPEC void SDL_UnlockAudio(void);
   1.100 +extern DECLSPEC void SDLCALL SDL_LockAudio(void);
   1.101 +extern DECLSPEC void SDLCALL SDL_UnlockAudio(void);
   1.102  
   1.103  /*
   1.104   * This function shuts down audio processing and closes the audio device.
   1.105   */
   1.106 -extern DECLSPEC void SDL_CloseAudio(void);
   1.107 +extern DECLSPEC void SDLCALL SDL_CloseAudio(void);
   1.108  
   1.109  
   1.110  /* Ends C function definitions when using C++ */