]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
modplug. set total length to 1<<30 now, as anything higher causes Host_Error
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Sep 2011 18:01:01 +0000 (18:01 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Sep 2011 18:01:01 +0000 (18:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11335 d7cf8633-e32d-0410-b094-e92efae38249

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;