sounds - triangle HQ clean up
This commit is contained in:
parent
16c6f3860c
commit
ada24bab00
|
@ -723,9 +723,6 @@ static void RDoTriangle(void)
|
||||||
uint32 V; //mbg merge 7/17/06 made uitn32
|
uint32 V; //mbg merge 7/17/06 made uitn32
|
||||||
int32 tcout;
|
int32 tcout;
|
||||||
|
|
||||||
//Modify Square wave volume based on channel volume modifiers
|
|
||||||
if (FSettings.TriangleVolume < 100) return; //On/Off for now
|
|
||||||
|
|
||||||
tcout=(tristep&0xF);
|
tcout=(tristep&0xF);
|
||||||
if(!(tristep&0x10)) tcout^=0xF;
|
if(!(tristep&0x10)) tcout^=0xF;
|
||||||
tcout=(tcout*3) << 16; //(tcout<<1);
|
tcout=(tcout*3) << 16; //(tcout<<1);
|
||||||
|
@ -736,6 +733,7 @@ static void RDoTriangle(void)
|
||||||
int32 count = SOUNDTS - ChannelBC[2];
|
int32 count = SOUNDTS - ChannelBC[2];
|
||||||
while(count--)
|
while(count--)
|
||||||
{
|
{
|
||||||
|
//Modify volume based on channel volume modifiers
|
||||||
*start += (tcout/100*FSettings.TriangleVolume)&(~0xFFFF);
|
*start += (tcout/100*FSettings.TriangleVolume)&(~0xFFFF);
|
||||||
start++;
|
start++;
|
||||||
}
|
}
|
||||||
|
@ -745,6 +743,7 @@ static void RDoTriangle(void)
|
||||||
else
|
else
|
||||||
for(V=ChannelBC[2];V<SOUNDTS;V++)
|
for(V=ChannelBC[2];V<SOUNDTS;V++)
|
||||||
{
|
{
|
||||||
|
//Modify volume based on channel volume modifiers
|
||||||
WaveHi[V]+=(tcout/100*FSettings.TriangleVolume)&(~0xFFFF);
|
WaveHi[V]+=(tcout/100*FSettings.TriangleVolume)&(~0xFFFF);
|
||||||
wlcount[2]--;
|
wlcount[2]--;
|
||||||
if(!wlcount[2])
|
if(!wlcount[2])
|
||||||
|
|
Loading…
Reference in New Issue