mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 23:43:49 +00:00
Abort the voice prompt if network traffic appears on the same slot.
This commit is contained in:
parent
3b3243c1bf
commit
00342c763a
6 changed files with 33 additions and 2 deletions
11
DynVoice.cpp
11
DynVoice.cpp
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue