fix scorpion 4 sound regression

This commit is contained in:
Michaël Banaan Ananas 2013-06-25 15:43:55 +00:00
parent 37a97133d6
commit 69f178b612

View File

@ -19,9 +19,9 @@
Voice signal is output in stereo 16-bit 2's complement MSB-first format Voice signal is output in stereo 16-bit 2's complement MSB-first format
TODO: TODO:
- Is memory handling 100% correct? At the moment, Konami firebeat.c is the only - Is memory handling 100% correct? At the moment, Konami firebeat.c and Scorpion bfm_sc4/5.c
hardware currently emulated that uses external handlers. are the only hardware currently emulated that use external handlers.
It also happens to be the only one using 16-bit PCM. Konami firebeat.c also happens to be the only one using 16-bit PCM.
*/ */
@ -823,6 +823,8 @@ void ymz280b_device::write_to_register(int data)
case 0x86: /* ROM readback / RAM write (low) -> update latch */ case 0x86: /* ROM readback / RAM write (low) -> update latch */
m_ext_mem_address = m_ext_mem_address_hi | m_ext_mem_address_mid | data; m_ext_mem_address = m_ext_mem_address_hi | m_ext_mem_address_mid | data;
if (m_ext_mem_enable)
m_ext_readlatch = ymz280b_read_memory(m_ext_mem_address);
break; break;
case 0x87: /* RAM write */ case 0x87: /* RAM write */