mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-14 04:09:08 +01:00
fixed improper PCM channel status check
This commit is contained in:
parent
0f71b85e2a
commit
ac33d5ee34
@ -239,7 +239,7 @@ void pcm_write(unsigned int address, unsigned char data)
|
||||
pcm.chan[pcm.index].st = data << (8 + 11);
|
||||
|
||||
/* reload WAVE RAM address if channel is OFF */
|
||||
if (~(pcm.status & (1 << pcm.index)))
|
||||
if (!(pcm.status & (1 << pcm.index)))
|
||||
{
|
||||
pcm.chan[pcm.index].addr = pcm.chan[pcm.index].st;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user