mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-09-10 16:53:15 +02: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);
|
pcm.chan[pcm.index].st = data << (8 + 11);
|
||||||
|
|
||||||
/* reload WAVE RAM address if channel is OFF */
|
/* 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;
|
pcm.chan[pcm.index].addr = pcm.chan[pcm.index].st;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user