mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-21 13:35:40 +08:00
Abort the voice prompt if network traffic appears on the same slot.
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user