mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-11-10 06:25:31 -05:00
Fix compile issues.
This commit is contained in:
parent
698642c7b6
commit
ca9b4d0e8b
@ -352,7 +352,7 @@ void CP25Gateway::run()
|
|||||||
if (voice != NULL) {
|
if (voice != NULL) {
|
||||||
unsigned int length = voice->read(buffer);
|
unsigned int length = voice->read(buffer);
|
||||||
if (length > 0U)
|
if (length > 0U)
|
||||||
localNetwork.write(buffer, length, rptAddr, rptPort);
|
localNetwork.writeData(buffer, length, rptAddr, rptPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int ms = stopWatch.elapsed();
|
unsigned int ms = stopWatch.elapsed();
|
||||||
|
@ -226,7 +226,7 @@ void CVoice::createVoice(unsigned int tg, const std::vector<std::string>& words)
|
|||||||
for (std::vector<std::string>::const_iterator it = words.begin(); it != words.end(); ++it) {
|
for (std::vector<std::string>::const_iterator it = words.begin(); it != words.end(); ++it) {
|
||||||
if (m_positions.count(*it) > 0U) {
|
if (m_positions.count(*it) > 0U) {
|
||||||
CPositions* position = m_positions.at(*it);
|
CPositions* position = m_positions.at(*it);
|
||||||
m_voiceeLength += position->m_length;
|
m_voiceLength += position->m_length;
|
||||||
} else {
|
} else {
|
||||||
LogWarning("Unable to find character/phrase \"%s\" in the index", (*it).c_str());
|
LogWarning("Unable to find character/phrase \"%s\" in the index", (*it).c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user