mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-20 04:30:54 +00:00
Minor bugs in SSI263 (PR #1270)
SSI263: avoid assertion in DSVoiceStop when running with -no-mb.
This commit is contained in:
parent
69151a2aff
commit
7497aa9923
@ -323,6 +323,11 @@ void SSI263::Votrax_Write(BYTE value)
|
|||||||
|
|
||||||
void SSI263::Play(unsigned int nPhoneme)
|
void SSI263::Play(unsigned int nPhoneme)
|
||||||
{
|
{
|
||||||
|
if (!SSI263SingleVoice.lpDSBvoice)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!SSI263SingleVoice.bActive)
|
if (!SSI263SingleVoice.bActive)
|
||||||
{
|
{
|
||||||
bool bRes = DSZeroVoiceBuffer(&SSI263SingleVoice, m_kDSBufferByteSize);
|
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);
|
SetCardMode(mode);
|
||||||
|
|
||||||
// Only need to directly assert IRQ for Phasor mode (for Mockingboard mode it's done via UpdateIFR() in parent)
|
// Only need to directly assert IRQ for Phasor mode (for Mockingboard mode it's done via UpdateIFR() in parent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user