]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_modplug.c
modplug. set total length to 1<<30 now, as anything higher causes Host_Error
[xonotic/darkplaces.git] / snd_modplug.c
index 596b38ff75ab7d8e3a85da14a225dc285c6bd2b9..a8fad86bce6ba6bbac66d2ffd04f7e1eccd341a2 100644 (file)
@@ -493,7 +493,7 @@ qboolean ModPlug_LoadModPlugFile (const char *filename, sfx_t *sfx)
        sfx->fetcher_data = per_sfx;
        sfx->fetcher = &modplug_fetcher;
        sfx->flags |= SFXFLAG_STREAMED;
-       sfx->total_length = 2147384647; // they always loop
+       sfx->total_length = 1<<30; // 2147384647; // they always loop (FIXME this breaks after 6 hours, we need support for a real "infinite" value!)
        sfx->loopstart = sfx->total_length; // modplug does it
 
        return true;