From ac28659b50f1d6afdd3131d578cb61995783c418 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Fri, 21 Aug 2020 11:33:06 -0700 Subject: sp0250: count one more for pitch; update comments. --- src/devices/sound/sp0250.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/devices/sound/sp0250.cpp b/src/devices/sound/sp0250.cpp index 03d5004f695..bf0162a7c35 100644 --- a/src/devices/sound/sp0250.cpp +++ b/src/devices/sound/sp0250.cpp @@ -6,11 +6,8 @@ By O. Galibert. Unknown: - - Exact clock divider - - Exact noise algorithm - Exact noise pitch (probably ok) - - 7 bits output mapping - - Whether the pitch starts counting from 0 or 1 + - Whether the pitch starts counting from 0 or 1 (guessing 0) Unimplemented: - Direct Data test mode (pin 7) @@ -256,7 +253,7 @@ int8_t sp0250_device::next() (((dac + 68 + 0) >> 2) << 24); m_pcount++; - if (m_pcount >= m_pitch) + if (m_pcount == 0 || m_pcount > m_pitch) { m_pcount = 0; m_rcount++; -- cgit v1.2.3