update
This commit is contained in:
parent
934c70421b
commit
b7b3319dfc
|
@ -775,16 +775,17 @@ static void RDoTriangle(void)
|
||||||
|
|
||||||
if(!lengthcount[2] || !TriCount)
|
if(!lengthcount[2] || !TriCount)
|
||||||
{ /* Counter is halted, but we still need to output. */
|
{ /* Counter is halted, but we still need to output. */
|
||||||
int32 *start = &WaveHi[ChannelBC[2]];
|
/*int32 *start = &WaveHi[ChannelBC[2]];
|
||||||
int32 count = SOUNDTS - ChannelBC[2];
|
int32 count = SOUNDTS - ChannelBC[2];
|
||||||
while(count--)
|
while(count--)
|
||||||
{
|
{
|
||||||
//Modify volume based on channel volume modifiers
|
//Modify volume based on channel volume modifiers
|
||||||
*start += (tcout/256*FSettings.TriangleVolume)&(~0xFFFF); // TODO OPTIMIZE ME NOW DAMMIT!
|
*start += (tcout/256*FSettings.TriangleVolume)&(~0xFFFF); // TODO OPTIMIZE ME NOW DAMMIT!
|
||||||
start++;
|
start++;
|
||||||
}
|
}*/
|
||||||
//for(V=ChannelBC[2];V<SOUNDTS;V++)
|
int32 cout = (tcout/256*FSettings.TriangleVolume)&(~0xFFFF);
|
||||||
// WaveHi[V]+=tcout;
|
for(V=ChannelBC[2];V<SOUNDTS;V++)
|
||||||
|
WaveHi[V]+=cout;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for(V=ChannelBC[2];V<SOUNDTS;V++)
|
for(V=ChannelBC[2];V<SOUNDTS;V++)
|
||||||
|
|
Loading…
Reference in New Issue