SPU: small fix to PSG noise.

This commit is contained in:
luigi__ 2009-11-13 17:31:07 +00:00
parent 38a687eed8
commit 5d362c9409
1 changed files with 2 additions and 2 deletions

View File

@ -638,12 +638,12 @@ static FORCEINLINE void FetchPSGData(channel_struct *chan, s32 *data)
{ {
if(chan->x & 0x1) if(chan->x & 0x1)
{ {
chan->x = (chan->x >> 1); chan->x = (chan->x >> 1) ^ 0x6000;
chan->psgnoise_last = -0x7FFF; chan->psgnoise_last = -0x7FFF;
} }
else else
{ {
chan->x = ((chan->x >> 1) ^ 0x6000); chan->x >>= 1;
chan->psgnoise_last = 0x7FFF; chan->psgnoise_last = 0x7FFF;
} }
} }