diff include/SDL_audio.h @ 1985:8055185ae4ed

Added source color and alpha modulation support. Added perl script to generate optimized render copy functions.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Aug 2006 03:17:39 +0000
parents ee73925ddf14
children 5f6550e5184f 37c9c4590689
line wrap: on
line diff
--- a/include/SDL_audio.h	Thu Aug 24 12:49:59 2006 +0000
+++ b/include/SDL_audio.h	Mon Aug 28 03:17:39 2006 +0000
@@ -132,22 +132,22 @@
 
 /* A structure to hold a set of audio conversion filters and buffers */
 struct SDL_AudioCVT;
-typedef void (SDLCALL * SDL_AudioFilter)(struct SDL_AudioCVT *cvt,
-                                         SDL_AudioFormat format);
+typedef void (SDLCALL * SDL_AudioFilter) (struct SDL_AudioCVT * cvt,
+                                          SDL_AudioFormat format);
 
 typedef struct SDL_AudioCVT
 {
-    int needed;                  /* Set to 1 if conversion possible */
-    SDL_AudioFormat src_format;  /* Source audio format */
-    SDL_AudioFormat dst_format;  /* Target audio format */
-    double rate_incr;            /* Rate conversion increment */
-    Uint8 *buf;                  /* Buffer to hold entire audio data */
-    int len;                     /* Length of original audio buffer */
-    int len_cvt;                 /* Length of converted audio buffer */
-    int len_mult;                /* buffer must be len*len_mult big */
-    double len_ratio;            /* Given len, final size is len*len_ratio */
-    SDL_AudioFilter filters[10]; /* Filter list */
-    int filter_index;            /* Current audio conversion function */
+    int needed;                 /* Set to 1 if conversion possible */
+    SDL_AudioFormat src_format; /* Source audio format */
+    SDL_AudioFormat dst_format; /* Target audio format */
+    double rate_incr;           /* Rate conversion increment */
+    Uint8 *buf;                 /* Buffer to hold entire audio data */
+    int len;                    /* Length of original audio buffer */
+    int len_cvt;                /* Length of converted audio buffer */
+    int len_mult;               /* buffer must be len*len_mult big */
+    double len_ratio;           /* Given len, final size is len*len_ratio */
+    SDL_AudioFilter filters[10];        /* Filter list */
+    int filter_index;           /* Current audio conversion function */
 } SDL_AudioCVT;