From 236b1182367d8f67c1124c11a09a24345833a756 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 8 Sep 2011 18:01:01 +0000 Subject: [PATCH] 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 --- snd_modplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2