From e2ad6271d51eae0fd57c45f42b928e23f80874aa Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 18 Oct 2001 17:02:36 +0000 Subject: [PATCH] David Hedbor - Thu Oct 18 10:01:41 PDT 2001 * Stop implicit looping, set fade out and other flags on MOD files --- CHANGES | 2 ++ music.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGES b/CHANGES index ce6654b5..73b7a5c6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ 1.2.1: +David Hedbor - Thu Oct 18 10:01:41 PDT 2001 + * Stop implicit looping, set fade out and other flags on MOD files Sam Lantinga - Tue Oct 16 11:17:12 PDT 2001 * The music file type is now determined by extension as well as magic Ryan C. Gordon - Tue Sep 11 12:05:54 PDT 2001 diff --git a/music.c b/music.c index 3aa4e610..b9bf0b8f 100644 --- a/music.c +++ b/music.c @@ -506,6 +506,13 @@ Mix_Music *Mix_LoadMUS(const char *file) if ( music->data.module == NULL ) { Mix_SetError("%s", MikMod_strerror(MikMod_errno)); music->error = 1; + } else { + /* Stop implicit looping, fade out and other flags. */ + music->data.module->extspd = 1; + music->data.module->panflag = 1; + music->data.module->wrap = 0; + music->data.module->loop = 0; + music->data.module->fadeout = 1; } } else #endif