Abort the voice prompt if network traffic appears on the same slot.

This commit is contained in:
Jonathan Naylor
2020-04-18 22:33:24 +01:00
parent 3b3243c1bf
commit 00342c763a
6 changed files with 33 additions and 2 deletions

View File

@@ -171,4 +171,10 @@ void CRewriteDynTGRF::tgChange(unsigned int slot, unsigned int tg)
}
return;
}
}
}
void CRewriteDynTGRF::stopVoice(unsigned int slot)
{
if (slot == m_slot && m_voice != NULL)
m_voice->abort();
}