From 7497aa9923517519117d506eba9ab04ebbd11b4d Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 5 Jan 2024 22:41:38 +0000 Subject: [PATCH] Minor bugs in SSI263 (PR #1270) SSI263: avoid assertion in DSVoiceStop when running with -no-mb. --- source/SSI263.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/SSI263.cpp b/source/SSI263.cpp index 67f3728d..18cb31ac 100644 --- a/source/SSI263.cpp +++ b/source/SSI263.cpp @@ -323,6 +323,11 @@ void SSI263::Votrax_Write(BYTE value) void SSI263::Play(unsigned int nPhoneme) { + if (!SSI263SingleVoice.lpDSBvoice) + { + return; + } + if (!SSI263SingleVoice.bActive) { bool bRes = DSZeroVoiceBuffer(&SSI263SingleVoice, m_kDSBufferByteSize); @@ -900,7 +905,7 @@ void SSI263::LoadSnapshot(YamlLoadHelper& yamlLoadHelper, PHASOR_MODE mode, UINT // - _ASSERT(m_device != -1); + _ASSERT(m_device != BYTE(-1)); SetCardMode(mode); // Only need to directly assert IRQ for Phasor mode (for Mockingboard mode it's done via UpdateIFR() in parent)