diff options
author | Henri Herscher <henri@oreka.org> | 2006-09-07 14:06:56 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-09-07 14:06:56 +0000 |
commit | 122bb97947035e7fb84fbad5d648d7a88e86e8fb (patch) | |
tree | 6c595968dd3e2bad6e36b111e6964d0ce58181a8 /orkaudio/audiocaptureplugins/voip/RtpSession.cpp | |
parent | c4430187fd4c172f1c37c3b37ad70aaa5c4fa736 (diff) |
Timestamp correction is now managed by the RTP mixer. This also fixes some single-sided audio problems.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@332 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.cpp')
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/RtpSession.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp index b51e6f8..2aac32f 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp @@ -389,38 +389,6 @@ bool RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket) m_numRtpPackets++; - // Compute the corrective delta - if(m_rtpTimestampCorrectiveDelta == 0 && m_lastRtpPacketSide2.get() != NULL) - { - if(m_lastRtpPacketSide2->m_timestamp > m_lastRtpPacketSide1->m_timestamp) - { - m_rtpTimestampCorrectiveSign = true; - m_rtpTimestampCorrectiveDelta = m_lastRtpPacketSide2->m_timestamp - m_lastRtpPacketSide1->m_timestamp; - } - else - { - m_rtpTimestampCorrectiveSign = false; - m_rtpTimestampCorrectiveDelta = m_lastRtpPacketSide1->m_timestamp - m_lastRtpPacketSide2->m_timestamp; - } - if(m_log->isInfoEnabled()) - { - CStdString timestampOffsetString = IntToString(m_rtpTimestampCorrectiveDelta); - LOG4CXX_INFO(m_log, m_trackingId + ": " + m_capturePort + ": " + "Applying timestamp corrective delta:" + timestampOffsetString); - } - } - // apply the corrective delta to packets of side 2 - if(channel == 2) - { - if(m_rtpTimestampCorrectiveSign) - { - correctedRtpTimestamp = rtpPacket->m_timestamp - m_rtpTimestampCorrectiveDelta; - } - else - { - correctedRtpTimestamp = rtpPacket->m_timestamp + m_rtpTimestampCorrectiveDelta; - } - } - if(m_log->isDebugEnabled()) { CStdString debug; |