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

@@ -162,6 +162,17 @@ void CDynVoice::unlinked()
createVoice(words);
}
void CDynVoice::abort()
{
for (std::vector<CDMRData*>::iterator it = m_data.begin(); it != m_data.end(); ++it)
delete* it;
m_data.clear();
m_timer.stop();
m_status = DYNVS_NONE;
}
void CDynVoice::createVoice(const std::vector<std::string>& words)
{
unsigned int ambeLength = 0U;