diff include/SDL_audio.h @ 2656:dd74182b3c3c gsoc2008_audio_resampling

Began implementing IIR and FIR filters, and got zero stuffing and sample discarding working.
author Aaron Wishnick <schnarf@gmail.com>
date Wed, 18 Jun 2008 18:55:50 +0000
parents b8e736c8a5a8
children
line wrap: on
line diff
--- a/include/SDL_audio.h	Wed Jun 18 04:51:10 2008 +0000
+++ b/include/SDL_audio.h	Wed Jun 18 18:55:50 2008 +0000
@@ -142,8 +142,8 @@
     SDL_AudioFormat dst_format; /* Target audio format */
     double rate_incr;           /* Rate conversion increment */
     Uint8 *buf;                 /* Buffer to hold entire audio data */
-	Uint8 *sinc;				/* Windowed sinc filter */
-	Uint8 *state_buf;			/* Sample history for either the FIR or IIR filter */
+	Uint8 *coeff;				/* Filter coefficients: either big windowed sinc filter, or 6 IIR lowpass coefficients*/
+	Uint8 *state_buf;			/* Sample history for either the FIR or IIR filter. For IIR filter, first two elements are X, second two are Y, and state_pos toggles the order */
 	int state_pos;				/* Position in the state */
 	int len_sinc;				/* Length of windowed sinc filter, in appropriate units (not necessarily bytes) */
     int len;                    /* Length of original audio buffer */