Sound channel volume - added High quality PCM volume control

This commit is contained in:
adelikat 2009-02-07 01:45:48 +00:00
parent ada24bab00
commit 4a86548de1
1 changed files with 1 additions and 2 deletions

View File

@ -546,8 +546,7 @@ void RDoPCM(void)
uint32 V; //mbg merge 7/17/06 made uint32
for(V=ChannelBC[4];V<SOUNDTS;V++)
WaveHi[V]+=RawDALatch<<16;
WaveHi[V]+=(((RawDALatch<<16)/100) * FSettings.PCMVolume)&(~0xFFFF);
ChannelBC[4]=SOUNDTS;
}