Mercurial > ~darius > hgwebdir.cgi > mikmod
changeset 17:80fa6dd10e14
Fix some C++ 'ism's
author | darius |
---|---|
date | Thu, 23 Apr 1998 22:54:49 +0000 |
parents | e5529b6e3b1c |
children | db40f957950f |
files | playercode/mdriver.c playercode/mplayer.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/playercode/mdriver.c Thu Apr 23 07:35:49 1998 +0000 +++ b/playercode/mdriver.c Thu Apr 23 22:54:49 1998 +0000 @@ -261,7 +261,7 @@ return; tmp = (ULONG) vol *(ULONG) md_volume * ((voice < md_sngchn) ? (ULONG) md_musicvolume : (ULONG) md_sndfxvolume); - md_driver->VoiceSetVolume(voice, tmp / 16384 UL); + md_driver->VoiceSetVolume(voice, tmp / 16384); }
--- a/playercode/mplayer.c Thu Apr 23 07:35:49 1998 +0000 +++ b/playercode/mplayer.c Thu Apr 23 22:54:49 1998 +0000 @@ -219,7 +219,7 @@ } } - tvol = 0xffffff UL; + tvol = 0xffffff; t = 0; p = 0; a = pf->voice; @@ -2453,7 +2453,7 @@ * samplevolume */ tmpvol *= envvol; /* * max 256 */ tmpvol *= pf->volume; /* * max 128 */ - tmpvol /= 4194304 UL; + tmpvol /= 4194304; if ((aout->masterchn != -1) && pf->control[aout->masterchn].muted) /* Channel Muting Line */ Voice_SetVolume(t, 0);