#include "quakedef.h"
+#include "snd_main.h"
#include "snd_wav.h"
if (info.samples)
{
if (samples < info.samples)
- Host_Error ("Sound %s has a bad loop length", name);
+ {
+ Con_Printf ("Sound %s has a bad loop length", name);
+ info.samples = samples;
+ }
}
else
info.samples = samples;
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);