#include "quakedef.h"
+#include "snd_main.h"
#include "snd_wav.h"
sfxbuffer_t* sb;
Mem_FreePool (&s->mempool);
- s->mempool = Mem_AllocPool(s->name);
+ s->mempool = Mem_AllocPool(s->name, 0, NULL);
// Load the file
data = FS_LoadFile(filename, s->mempool, false);
Mem_FreePool (&s->mempool);
return false;
}
+ //if (info.channels == 2)
+ // Log_Printf("stereosounds.log", "%s\n", s->name);
// calculate resampled length
len = (int) ((double) info.samples * (double) shm->format.speed / (double) info.rate);
s->loopstart = -1;
else
s->loopstart = (double)info.loopstart * (double)shm->format.speed / (double)s->format.speed;
+ s->flags &= ~SFXFLAG_STREAMED;
#if BYTE_ORDER != LITTLE_ENDIAN
// We must convert the WAV data from little endian