From 6e5b5b73611fc4d2776df1af5c84c7c8b0078d3a Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Wed, 1 Apr 2015 22:44:07 +0200 Subject: [PATCH] Don't skip bytes during playback ... --- src/emu/sound/l7a1045_l6028_dsp_a.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/emu/sound/l7a1045_l6028_dsp_a.c b/src/emu/sound/l7a1045_l6028_dsp_a.c index 1bc45c8c01d..99265f1559f 100644 --- a/src/emu/sound/l7a1045_l6028_dsp_a.c +++ b/src/emu/sound/l7a1045_l6028_dsp_a.c @@ -42,7 +42,7 @@ 6 ---------------- ---------------- ---------------- - 7 ---------------- ---------------- ---------------- + 7 ---------------- ---------------- llllllllrrrrrrrr left/right volume 8 ---------------- ---------------- ---------------- (read only?) @@ -69,6 +69,7 @@ Some of the other ports on the HNG64 sound CPU may also be tied to this chip, this isn't yet clear. + Port $8 bit 8 is keyon, low byte is sound status related (masked with 0x7f) Sample data format TBA @@ -108,7 +109,7 @@ l7a1045_sound_device::l7a1045_sound_device(const machine_config &mconfig, const void l7a1045_sound_device::device_start() { /* Allocate the stream */ - m_stream = stream_alloc(0, 2, clock() / 384); + m_stream = stream_alloc(0, 2, 44100/4); //clock() / 384); m_rom = m_region->base(); m_rom_size = m_region->bytes(); @@ -142,7 +143,7 @@ void l7a1045_sound_device::sound_stream_update(sound_stream &stream, stream_samp { INT32 sample; - pos += (frac >> 12); + pos += 1;//(frac >> 12); frac &= 0xfff; if ((start + pos) >= end)