diff options
| author | 2008-05-03 23:59:54 +0000 | |
|---|---|---|
| committer | 2008-05-03 23:59:54 +0000 | |
| commit | 1119d3f129a38bb15393662bf6913f0e1dfeaeab (patch) | |
| tree | 33f91937f49480185dc379f0c951fa8f6cd421d9 | |
| parent | 0a5fc7b33e17ed784b6a0515ccfe621b81e30eb8 (diff) | |
Fixed an envelope corner case in the SCSP and AICA (kingshriek)
| -rw-r--r-- | src/emu/sound/aica.c | 2 | ||||
| -rw-r--r-- | src/emu/sound/scsp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/sound/aica.c b/src/emu/sound/aica.c index 2ac522e0bf4..99335643f0c 100644 --- a/src/emu/sound/aica.c +++ b/src/emu/sound/aica.c @@ -376,7 +376,7 @@ static int EG_Update(struct _SLOT *slot) slot->EG.volume-=slot->EG.D1R; if(slot->EG.volume<=0) slot->EG.volume=0; - if(slot->EG.volume>>(EG_SHIFT+5)<slot->EG.DL) + if(slot->EG.volume>>(EG_SHIFT+5)<=slot->EG.DL) slot->EG.state=DECAY2; break; case DECAY2: diff --git a/src/emu/sound/scsp.c b/src/emu/sound/scsp.c index e874432e251..6548318bafb 100644 --- a/src/emu/sound/scsp.c +++ b/src/emu/sound/scsp.c @@ -419,7 +419,7 @@ static int EG_Update(struct _SLOT *slot) slot->EG.volume-=slot->EG.D1R; if(slot->EG.volume<=0) slot->EG.volume=0; - if(slot->EG.volume>>(EG_SHIFT+5)<slot->EG.DL) + if(slot->EG.volume>>(EG_SHIFT+5)<=slot->EG.DL) slot->EG.state=DECAY2; break; case DECAY2: |
