Further improvements to SCSP FM (kingshriek).

This commit is contained in:
R. Belmont 2008-01-29 21:36:02 +00:00
parent dbf80b011c
commit dfccbbc479

View file

@ -1070,7 +1070,10 @@ INLINE INT32 SCSP_UpdateSlot(struct _SCSP *SCSP, struct _SLOT *slot)
sample=(sample*EG_TABLE[EG_Update(slot)>>(SHIFT-10)])>>SHIFT;
if(!STWINH(slot))
*RBUFDST=sample;
{
unsigned short Enc=((TL(slot))<<0x0)|(0x7<<0xd);
*RBUFDST=(sample*SCSP->LPANTABLE[Enc])>>(SHIFT+1);
}
return sample;
}