Skip to content

Commit

Permalink
David Hedbor - Thu Oct 18 10:01:41 PDT 2001
Browse files Browse the repository at this point in the history
 * Stop implicit looping, set fade out and other flags on MOD files
  • Loading branch information
slouken committed Oct 18, 2001
1 parent e958e24 commit e2ad627
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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
Expand Down
7 changes: 7 additions & 0 deletions music.c
Expand Up @@ -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
Expand Down

0 comments on commit e2ad627

Please sign in to comment.