MCPcopy Create free account
hub / github.com/JACoders/OpenJK / S_LoadSound_Finalize

Function S_LoadSound_Finalize

code/client/snd_mem.cpp:259–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258
259void S_LoadSound_Finalize(wavinfo_t *info, sfx_t *sfx, byte *data)
260{
261 //float stepscale = (float)info->rate / dma.speed;
262 //int len = (int)(info->samples / stepscale);
263
264 //len *= info->width;
265
266 sfx->eSoundCompressionMethod = ct_16;
267 sfx->iSoundLengthInSamples = info->samples;
268 ResampleSfx( sfx, info->rate, info->width, data + info->dataofs );
269}
270
271
272

Callers 2

R_CheckMP3sFunction · 0.70
S_LoadSound_ActualFunction · 0.70

Calls 1

ResampleSfxFunction · 0.70

Tested by

no test coverage detected