QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

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...
 

Detailed Description

Function Documentation

void SND_Convert ( byte idata,
float *  fdata,
int  frames,
int  channels,
int  width 
)

Convert integer sample data to float sample data.

Parameters
idatainteger data buffer
fdatafloat data buffer
framesnumber of frames
channelsnumber of channels per frame
widthbytes per channel
void SND_PulldownResampler ( sfxstream_t stream)

Free memory allocated for the resampler.

Parameters
streamstream to pulldown
void SND_Resample ( sfxbuffer_t sc,
float *  data,
int  length 
)

Copy/resample data into buffer, resampling as necessary.

Parameters
scbuffer to write resampled sound
dataraw sample data
lengthnumber of frames to resample
void SND_SetupResampler ( sfxbuffer_t sc,
int  streamed 
)

Set up the various parameters that depend on the actual sample rate.

Parameters
scbuffer to setup
streamednon-zero if this is for a stream.