diff options
author | Henri Herscher <henri@oreka.org> | 2006-12-18 20:54:10 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-12-18 20:54:10 +0000 |
commit | 179e05d310e852573838d417c38744ed77c8dc30 (patch) | |
tree | ac392034ad653a670059698a2e622150a7539e44 /orkaudio/BatchProcessing.cpp | |
parent | 0b1f069bf332eb6c21357d17b7b8a5795f165efc (diff) |
RTP mixer is now flushed at the end of streams so we don't miss a small chunk of audio at the end of the transcoded file. Also, introduced VoIP QOS logging in the RTP mixer.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@372 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/BatchProcessing.cpp')
-rw-r--r-- | orkaudio/BatchProcessing.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/orkaudio/BatchProcessing.cpp b/orkaudio/BatchProcessing.cpp index 808fea0..14b5d11 100644 --- a/orkaudio/BatchProcessing.cpp +++ b/orkaudio/BatchProcessing.cpp @@ -240,6 +240,20 @@ void BatchProcessing::ThreadHandler(void *args) } } + if(voIpSession) + { + // Flush the RTP mixer + AudioChunkRef stopChunk(new AudioChunk()); + stopChunk->GetDetails()->m_marker = MEDIA_CHUNK_EOS_MARKER; + filter->AudioChunkIn(stopChunk); + filter->AudioChunkOut(tmpChunkRef); + outFileRef->WriteChunk(tmpChunkRef); + if(tmpChunkRef.get()) + { + numSamplesOut += tmpChunkRef->GetNumSamples(); + } + } + fileRef->Close(); outFileRef->Close(); logMsg.Format("[%s] Th%s stop: num samples: s1:%u s2:%u out:%u", trackingId, threadIdString, numSamplesS1, numSamplesS2, numSamplesOut); |