diff --git a/P25Gateway/P25Gateway.cpp b/P25Gateway/P25Gateway.cpp index f05878d..b9e9c16 100644 --- a/P25Gateway/P25Gateway.cpp +++ b/P25Gateway/P25Gateway.cpp @@ -352,7 +352,7 @@ void CP25Gateway::run() if (voice != NULL) { unsigned int length = voice->read(buffer); if (length > 0U) - localNetwork.write(buffer, length, rptAddr, rptPort); + localNetwork.writeData(buffer, length, rptAddr, rptPort); } unsigned int ms = stopWatch.elapsed(); diff --git a/P25Gateway/Voice.cpp b/P25Gateway/Voice.cpp index 0b41c42..a44ee8d 100644 --- a/P25Gateway/Voice.cpp +++ b/P25Gateway/Voice.cpp @@ -226,7 +226,7 @@ void CVoice::createVoice(unsigned int tg, const std::vector& words) for (std::vector::const_iterator it = words.begin(); it != words.end(); ++it) { if (m_positions.count(*it) > 0U) { CPositions* position = m_positions.at(*it); - m_voiceeLength += position->m_length; + m_voiceLength += position->m_length; } else { LogWarning("Unable to find character/phrase \"%s\" in the index", (*it).c_str()); }