Functions | |
void | SND_Convert (byte *idata, float *fdata, int frames, int channels, int width) |
Convert integer sample data to float sample data. More... | |
void | SND_PulldownResampler (sfxstream_t *stream) |
Free memory allocated for the resampler. More... | |
void | SND_Resample (sfxbuffer_t *sc, float *data, int length) |
Copy/resample data into buffer, resampling as necessary. More... | |
void | SND_SetupResampler (sfxbuffer_t *sc, int streamed) |
Set up the various parameters that depend on the actual sample rate. More... | |
Convert integer sample data to float sample data.
idata | integer data buffer |
fdata | float data buffer |
frames | number of frames |
channels | number of channels per frame |
width | bytes per channel |
void SND_PulldownResampler | ( | sfxstream_t * | stream | ) |
Free memory allocated for the resampler.
stream | stream to pulldown |
void SND_Resample | ( | sfxbuffer_t * | sc, |
float * | data, | ||
int | length | ||
) |
Copy/resample data into buffer, resampling as necessary.
sc | buffer to write resampled sound |
data | raw sample data |
length | number of frames to resample |
void SND_SetupResampler | ( | sfxbuffer_t * | sc, |
int | streamed | ||
) |
Set up the various parameters that depend on the actual sample rate.
sc | buffer to setup |
streamed | non-zero if this is for a stream. |