summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2013-03-26 22:30:39 +0000
committer cracyc <cracyc@users.noreply.github.com>2013-03-26 22:30:39 +0000
commit66d87e851aeb802cc746575177c7eee5bb673f93 (patch)
treeee406fbd7eb55ef74c1c23e7d9c26dd9d591bf26 /src
parent3301dbe3696c60f53722e21bab5e40fab45f595d (diff)
spu: doh (nw)
Diffstat (limited to 'src')
-rw-r--r--src/emu/sound/spu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/spu.c b/src/emu/sound/spu.c
index 311badb5d81..2c9a3799b2a 100644
--- a/src/emu/sound/spu.c
+++ b/src/emu/sound/spu.c
@@ -2518,7 +2518,7 @@ void spu_device::generate_cdda(void *ptr, const unsigned int sz)
{
UINT16 irq_addr = spureg.irq_addr & ~0x401;
UINT32 end = m_cd_out_ptr + (sz >> 1);
- if((m_cd_out_ptr < irq_addr) && (end > irq_addr))
+ if(((m_cd_out_ptr < irq_addr) && (end > irq_addr)) || ((m_cd_out_ptr > (end & 0x3ff)) && ((end & 0x3ff) > irq_addr)))
m_irq_handler(1);
m_cd_out_ptr = end & 0x3fe;
}