David Hedbor - Thu Oct 18 10:01:41 PDT 2001
authorSam Lantinga <slouken@libsdl.org>
Thu, 18 Oct 2001 17:02:36 +0000
changeset 126c1062993276e
parent 125 60af9d35aba2
child 127 cfd3d3afb32e
David Hedbor - Thu Oct 18 10:01:41 PDT 2001
* Stop implicit looping, set fade out and other flags on MOD files
CHANGES
music.c
     1.1 --- a/CHANGES	Tue Oct 16 18:18:05 2001 +0000
     1.2 +++ b/CHANGES	Thu Oct 18 17:02:36 2001 +0000
     1.3 @@ -1,5 +1,7 @@
     1.4  
     1.5  1.2.1:
     1.6 +David Hedbor - Thu Oct 18 10:01:41 PDT 2001
     1.7 + * Stop implicit looping, set fade out and other flags on MOD files
     1.8  Sam Lantinga - Tue Oct 16 11:17:12 PDT 2001
     1.9   * The music file type is now determined by extension as well as magic
    1.10  Ryan C. Gordon - Tue Sep 11 12:05:54 PDT 2001
     2.1 --- a/music.c	Tue Oct 16 18:18:05 2001 +0000
     2.2 +++ b/music.c	Thu Oct 18 17:02:36 2001 +0000
     2.3 @@ -506,6 +506,13 @@
     2.4  		if ( music->data.module == NULL ) {
     2.5  			Mix_SetError("%s", MikMod_strerror(MikMod_errno));
     2.6  			music->error = 1;
     2.7 +		} else {
     2.8 +			/* Stop implicit looping, fade out and other flags. */
     2.9 +			music->data.module->extspd  = 1;
    2.10 +			music->data.module->panflag = 1;
    2.11 +			music->data.module->wrap    = 0;
    2.12 +			music->data.module->loop    = 0;
    2.13 +			music->data.module->fadeout = 1;
    2.14  		}
    2.15  	} else
    2.16  #endif