#include "snd_main.h"
#include "snd_ogg.h"
#include "snd_wav.h"
-#include "snd_modplug.h"
/*
size_t newsampleframes, memsize;
snd_buffer_t* sb;
- newsampleframes = (size_t) ((double)sampleframes * (double)sb_speed / (double)in_format->speed);
+ newsampleframes = (size_t) ceil((double)sampleframes * (double)sb_speed / (double)in_format->speed);
memsize = newsampleframes * in_format->channels * in_format->width;
memsize += sizeof (*sb) - sizeof (sb->samples);
if (OGG_LoadVorbisFile (namebuffer, sfx))
goto loaded;
}
- else
- {
- if (ModPlug_LoadModPlugFile (namebuffer, sfx))
- goto loaded;
- }
}
// LordHavoc: then try without the added sound/ as wav and ogg
if (OGG_LoadVorbisFile (namebuffer, sfx))
goto loaded;
}
- else
- {
- if (ModPlug_LoadModPlugFile (namebuffer, sfx))
- goto loaded;
- }
// Can't load the sound!
sfx->flags |= SFXFLAG_FILEMISSING;