include/SDL_audio.h
branchgsoc2008_audio_resampling
changeset 2656 dd74182b3c3c
parent 2655 b8e736c8a5a8
     1.1 --- a/include/SDL_audio.h	Wed Jun 18 04:51:10 2008 +0000
     1.2 +++ b/include/SDL_audio.h	Wed Jun 18 18:55:50 2008 +0000
     1.3 @@ -142,8 +142,8 @@
     1.4      SDL_AudioFormat dst_format; /* Target audio format */
     1.5      double rate_incr;           /* Rate conversion increment */
     1.6      Uint8 *buf;                 /* Buffer to hold entire audio data */
     1.7 -	Uint8 *sinc;				/* Windowed sinc filter */
     1.8 -	Uint8 *state_buf;			/* Sample history for either the FIR or IIR filter */
     1.9 +	Uint8 *coeff;				/* Filter coefficients: either big windowed sinc filter, or 6 IIR lowpass coefficients*/
    1.10 +	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 */
    1.11  	int state_pos;				/* Position in the state */
    1.12  	int len_sinc;				/* Length of windowed sinc filter, in appropriate units (not necessarily bytes) */
    1.13      int len;                    /* Length of original audio buffer */