#include "snd_main.h"
#include "snd_ogg.h"
#include "snd_wav.h"
+#ifdef USEXMP
+#include "snd_xmp.h"
+#endif
/*
if (developer_loading.integer)
Con_Printf("loading sound %s\n", sfx->name);
- SCR_PushLoadingScreen(true, sfx->name, 1);
+ SCR_PushLoadingScreen(sfx->name, 1);
- // LordHavoc: if the sound filename does not begin with sound/, try adding it
+ // LadyHavoc: if the sound filename does not begin with sound/, try adding it
if (strncasecmp(sfx->name, "sound/", 6))
{
dpsnprintf (namebuffer, sizeof(namebuffer), "sound/%s", sfx->name);
if (OGG_LoadVorbisFile (namebuffer, sfx))
goto loaded;
}
+#ifdef USEXMP
+ else if (len >= 1)
+ {
+ if (XMP_LoadModFile (namebuffer, sfx))
+ goto loaded;
+ }
+#endif
}
- // LordHavoc: then try without the added sound/ as wav and ogg
+ // LadyHavoc: then try without the added sound/ as wav and ogg
dpsnprintf (namebuffer, sizeof(namebuffer), "%s", sfx->name);
len = strlen(namebuffer);
// request foo.wav: tries foo.wav, then foo.ogg
if (OGG_LoadVorbisFile (namebuffer, sfx))
goto loaded;
}
+#ifdef USEXMP
+ else if (len >= 1)
+ {
+ if (XMP_LoadModFile (namebuffer, sfx))
+ goto loaded;
+ }
+#endif
// Can't load the sound!
sfx->flags |= SFXFLAG_FILEMISSING;