Sound channel volume - added High quality PCM volume control
This commit is contained in:
parent
ada24bab00
commit
4a86548de1
|
@ -546,8 +546,7 @@ void RDoPCM(void)
|
||||||
uint32 V; //mbg merge 7/17/06 made uint32
|
uint32 V; //mbg merge 7/17/06 made uint32
|
||||||
|
|
||||||
for(V=ChannelBC[4];V<SOUNDTS;V++)
|
for(V=ChannelBC[4];V<SOUNDTS;V++)
|
||||||
WaveHi[V]+=RawDALatch<<16;
|
WaveHi[V]+=(((RawDALatch<<16)/100) * FSettings.PCMVolume)&(~0xFFFF);
|
||||||
|
|
||||||
ChannelBC[4]=SOUNDTS;
|
ChannelBC[4]=SOUNDTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue