Mercurial > sdl-ios-xcode
diff include/SDL_audio.h @ 3021:f3dcf04412cf
First shot at new audio resampling code.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 11 Jan 2009 04:46:42 +0000 |
parents | e532417a6977 |
children | d3baf5ac4e37 |
line wrap: on
line diff
--- a/include/SDL_audio.h Sun Jan 11 04:46:14 2009 +0000 +++ b/include/SDL_audio.h Sun Jan 11 04:46:42 2009 +0000 @@ -147,15 +147,10 @@ SDL_AudioFormat dst_format; /* Target audio format */ double rate_incr; /* Rate conversion increment */ Uint8 *buf; /* Buffer to hold entire audio data */ - 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 */ int len_cvt; /* Length of converted audio buffer */ int len_mult; /* buffer must be len*len_mult big */ - int len_div; /* destination length = len_mult / len_div * src length */ - double len_ratio; /* Given len, final size is len*len_ratio ( len_ratio = len_mult / len_div ) */ + 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;