SSI263: avoid assertion in DSVoiceStop when running with -no-mb.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2024-01-04 12:27:34 +00:00
parent 9b0813b1f1
commit c8921e03c9
1 changed files with 5 additions and 0 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);