sounds - triangle HQ clean up

This commit is contained in:
adelikat 2009-02-07 01:25:50 +00:00
parent 16c6f3860c
commit ada24bab00
1 changed files with 3 additions and 4 deletions

View File

@ -723,9 +723,6 @@ static void RDoTriangle(void)
uint32 V; //mbg merge 7/17/06 made uitn32
int32 tcout;
//Modify Square wave volume based on channel volume modifiers
if (FSettings.TriangleVolume < 100) return; //On/Off for now
tcout=(tristep&0xF);
if(!(tristep&0x10)) tcout^=0xF;
tcout=(tcout*3) << 16; //(tcout<<1);
@ -736,6 +733,7 @@ static void RDoTriangle(void)
int32 count = SOUNDTS - ChannelBC[2];
while(count--)
{
//Modify volume based on channel volume modifiers
*start += (tcout/100*FSettings.TriangleVolume)&(~0xFFFF);
start++;
}
@ -745,6 +743,7 @@ static void RDoTriangle(void)
else
for(V=ChannelBC[2];V<SOUNDTS;V++)
{
//Modify volume based on channel volume modifiers
WaveHi[V]+=(tcout/100*FSettings.TriangleVolume)&(~0xFFFF);
wlcount[2]--;
if(!wlcount[2])