include/SDL_audio.h
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/include/SDL_audio.h	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/include/SDL_audio.h	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -106,20 +106,20 @@
     1.4  /* These functions return the list of built in video drivers, in the 
     1.5   * order that they are normally initialized by default.
     1.6   */
     1.7 -extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers (void);
     1.8 -extern DECLSPEC const char *SDLCALL SDL_GetAudioDriver (int index);
     1.9 +extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers(void);
    1.10 +extern DECLSPEC const char *SDLCALL SDL_GetAudioDriver(int index);
    1.11  
    1.12  /* These functions are used internally, and should not be used unless you
    1.13   * have a specific need to specify the audio driver you want to use.
    1.14   * You should normally use SDL_Init() or SDL_InitSubSystem().
    1.15   */
    1.16 -extern DECLSPEC int SDLCALL SDL_AudioInit (const char *driver_name);
    1.17 -extern DECLSPEC void SDLCALL SDL_AudioQuit (void);
    1.18 +extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name);
    1.19 +extern DECLSPEC void SDLCALL SDL_AudioQuit(void);
    1.20  
    1.21  /* This function returns the name of the current audio driver, or NULL
    1.22   * if no driver has been initialized.
    1.23   */
    1.24 -extern DECLSPEC const char *SDLCALL SDL_GetCurrentAudioDriver (void);
    1.25 +extern DECLSPEC const char *SDLCALL SDL_GetCurrentAudioDriver(void);
    1.26  
    1.27  /*
    1.28   * This function opens the audio device with the desired parameters, and
    1.29 @@ -162,8 +162,8 @@
    1.30   * may modify the requested size of the audio buffer, you should allocate
    1.31   * any local mixing buffers after you open the audio device.
    1.32   */
    1.33 -extern DECLSPEC int SDLCALL SDL_OpenAudio (SDL_AudioSpec * desired,
    1.34 -                                           SDL_AudioSpec * obtained);
    1.35 +extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec * desired,
    1.36 +                                          SDL_AudioSpec * obtained);
    1.37  
    1.38  /*
    1.39   * Get the current audio state:
    1.40 @@ -174,7 +174,7 @@
    1.41      SDL_AUDIO_PLAYING,
    1.42      SDL_AUDIO_PAUSED
    1.43  } SDL_audiostatus;
    1.44 -extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus (void);
    1.45 +extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus(void);
    1.46  
    1.47  /*
    1.48   * This function pauses and unpauses the audio callback processing.
    1.49 @@ -183,7 +183,7 @@
    1.50   * data for your callback function after opening the audio device.
    1.51   * Silence will be written to the audio device during the pause.
    1.52   */
    1.53 -extern DECLSPEC void SDLCALL SDL_PauseAudio (int pause_on);
    1.54 +extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on);
    1.55  
    1.56  /*
    1.57   * This function loads a WAVE from the data source, automatically freeing
    1.58 @@ -202,11 +202,11 @@
    1.59   * wave file cannot be opened, uses an unknown data format, or is 
    1.60   * corrupt.  Currently raw and MS-ADPCM WAVE files are supported.
    1.61   */
    1.62 -extern DECLSPEC SDL_AudioSpec *SDLCALL SDL_LoadWAV_RW (SDL_RWops * src,
    1.63 -                                                       int freesrc,
    1.64 -                                                       SDL_AudioSpec * spec,
    1.65 -                                                       Uint8 ** audio_buf,
    1.66 -                                                       Uint32 * audio_len);
    1.67 +extern DECLSPEC SDL_AudioSpec *SDLCALL SDL_LoadWAV_RW(SDL_RWops * src,
    1.68 +                                                      int freesrc,
    1.69 +                                                      SDL_AudioSpec * spec,
    1.70 +                                                      Uint8 ** audio_buf,
    1.71 +                                                      Uint32 * audio_len);
    1.72  
    1.73  /* Compatibility convenience function -- loads a WAV from a file */
    1.74  #define SDL_LoadWAV(file, spec, audio_buf, audio_len) \
    1.75 @@ -215,7 +215,7 @@
    1.76  /*
    1.77   * This function frees data previously allocated with SDL_LoadWAV_RW()
    1.78   */
    1.79 -extern DECLSPEC void SDLCALL SDL_FreeWAV (Uint8 * audio_buf);
    1.80 +extern DECLSPEC void SDLCALL SDL_FreeWAV(Uint8 * audio_buf);
    1.81  
    1.82  /*
    1.83   * This function takes a source format and rate and a destination format
    1.84 @@ -224,13 +224,13 @@
    1.85   * to the other.
    1.86   * This function returns 0, or -1 if there was an error.
    1.87   */
    1.88 -extern DECLSPEC int SDLCALL SDL_BuildAudioCVT (SDL_AudioCVT * cvt,
    1.89 -                                               Uint16 src_format,
    1.90 -                                               Uint8 src_channels,
    1.91 -                                               int src_rate,
    1.92 -                                               Uint16 dst_format,
    1.93 -                                               Uint8 dst_channels,
    1.94 -                                               int dst_rate);
    1.95 +extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
    1.96 +                                              Uint16 src_format,
    1.97 +                                              Uint8 src_channels,
    1.98 +                                              int src_rate,
    1.99 +                                              Uint16 dst_format,
   1.100 +                                              Uint8 dst_channels,
   1.101 +                                              int dst_rate);
   1.102  
   1.103  /* Once you have initialized the 'cvt' structure using SDL_BuildAudioCVT(),
   1.104   * created an audio buffer cvt->buf, and filled it with cvt->len bytes of
   1.105 @@ -240,7 +240,7 @@
   1.106   * cvt->buf should be allocated after the cvt structure is initialized by
   1.107   * SDL_BuildAudioCVT(), and should be cvt->len*cvt->len_mult bytes long.
   1.108   */
   1.109 -extern DECLSPEC int SDLCALL SDL_ConvertAudio (SDL_AudioCVT * cvt);
   1.110 +extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT * cvt);
   1.111  
   1.112  /*
   1.113   * This takes two audio buffers of the playing audio format and mixes
   1.114 @@ -250,8 +250,8 @@
   1.115   * This is provided for convenience -- you can mix your own audio data.
   1.116   */
   1.117  #define SDL_MIX_MAXVOLUME 128
   1.118 -extern DECLSPEC void SDLCALL SDL_MixAudio (Uint8 * dst, const Uint8 * src,
   1.119 -                                           Uint32 len, int volume);
   1.120 +extern DECLSPEC void SDLCALL SDL_MixAudio(Uint8 * dst, const Uint8 * src,
   1.121 +                                          Uint32 len, int volume);
   1.122  
   1.123  /*
   1.124   * The lock manipulated by these functions protects the callback function.
   1.125 @@ -259,13 +259,13 @@
   1.126   * callback function is not running.  Do not call these from the callback
   1.127   * function or you will cause deadlock.
   1.128   */
   1.129 -extern DECLSPEC void SDLCALL SDL_LockAudio (void);
   1.130 -extern DECLSPEC void SDLCALL SDL_UnlockAudio (void);
   1.131 +extern DECLSPEC void SDLCALL SDL_LockAudio(void);
   1.132 +extern DECLSPEC void SDLCALL SDL_UnlockAudio(void);
   1.133  
   1.134  /*
   1.135   * This function shuts down audio processing and closes the audio device.
   1.136   */
   1.137 -extern DECLSPEC void SDLCALL SDL_CloseAudio (void);
   1.138 +extern DECLSPEC void SDLCALL SDL_CloseAudio(void);
   1.139  
   1.140  
   1.141  /* Ends C function definitions when using C++ */