Ben Nason - Mon, 10 Feb 2003 11:50:27 -0800
authorSam Lantinga <slouken@libsdl.org>
Wed, 12 Feb 2003 04:54:31 +0000
changeset 2125e365cbbb0f0
parent 211 29350cb291cd
child 213 0cab09308739
Ben Nason - Mon, 10 Feb 2003 11:50:27 -0800
* Fixed volume control on MOD music chunk
CHANGES
mikmod/mplayer.c
     1.1 --- a/CHANGES	Mon Feb 10 00:46:49 2003 +0000
     1.2 +++ b/CHANGES	Wed Feb 12 04:54:31 2003 +0000
     1.3 @@ -1,4 +1,6 @@
     1.4  1.2.5:
     1.5 +Ben Nason - Mon, 10 Feb 2003 11:50:27 -0800
     1.6 + * Fixed volume control on MOD music chunks
     1.7  Patrice Mandin - Fri, 31 Jan 2003 15:17:30 +0100
     1.8   * Added support for the Atari platform
     1.9  Ryan C. Gordon - Fri Dec 27 10:14:07 EST 2002
     2.1 --- a/mikmod/mplayer.c	Mon Feb 10 00:46:49 2003 +0000
     2.2 +++ b/mikmod/mplayer.c	Wed Feb 12 04:54:31 2003 +0000
     2.3 @@ -1939,6 +1939,8 @@
     2.4  		tmpvol*=envvol;           /* * max 256 */
     2.5  		tmpvol*=pf->volume;       /* * max 128 */
     2.6  		tmpvol/=4194304UL;
     2.7 +               tmpvol*=pf->initvolume;   /* * max 128 */
     2.8 +               tmpvol/=128;
     2.9  
    2.10  		/* fade out */
    2.11  		if (pf->sngpos>=pf->numpos) tmpvol=0;