Minor bugs in SSI263 (PR #1270)

SSI263: avoid assertion in DSVoiceStop when running with -no-mb.
This commit is contained in:
Andrea 2024-01-05 22:41:38 +00:00 committed by GitHub
parent 69151a2aff
commit 7497aa9923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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)