From: divverent Date: Thu, 8 Sep 2011 18:01:01 +0000 (+0000) Subject: modplug. set total length to 1<<30 now, as anything higher causes Host_Error X-Git-Tag: xonotic-v0.6.0~342 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=236b1182367d8f67c1124c11a09a24345833a756;p=xonotic%2Fdarkplaces.git modplug. set total length to 1<<30 now, as anything higher causes Host_Error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11335 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=37f06df27633c20f2ffa4e927f52a826f5fb92eb --- diff --git a/snd_modplug.c b/snd_modplug.c index 596b38ff..a8fad86b 100644 --- a/snd_modplug.c +++ b/snd_modplug.c @@ -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;