diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-11-11 17:40:24 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-11-11 17:40:24 +0000 |
commit | 8278fd69bdca293e4e8a094dcdb7d985c97f3b7d (patch) | |
tree | 534ee78bf5ed042b24e426017e19b8528a935baf /orkbasecxx/CapturePort.h | |
parent | a8a150d2ae7ec2eecdcd35d3365cc7e27bf5019e (diff) |
Enhanced the audio segmentation feature such that it may be used on other feeds apart from continuous streams. This means it now works correctly with VoIP or TDM feeds
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@569 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/CapturePort.h')
-rw-r--r-- | orkbasecxx/CapturePort.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/orkbasecxx/CapturePort.h b/orkbasecxx/CapturePort.h index 20bbfe8..3b72f6f 100644 --- a/orkbasecxx/CapturePort.h +++ b/orkbasecxx/CapturePort.h @@ -41,11 +41,14 @@ public: void AddCaptureEvent(CaptureEventRef eventRef); bool IsExpired(time_t now); void Finalize(); + void QueueCaptureEvent(CaptureEventRef& eventRef); + void ClearEventQueue(); private: void LoadFilters(); void FilterAudioChunk(AudioChunkRef& chunkRef); void FilterCaptureEvent(CaptureEventRef& eventRef); + void ReportEventBacklog(AudioTapeRef& audioTape); CStdString m_id; AudioTapeRef m_audioTapeRef; @@ -55,7 +58,9 @@ private: bool m_vadUp; time_t m_lastUpdated; std::list<FilterRef> m_filters; + std::list<CaptureEventRef> m_captureEvents; bool m_needSendStop; + int m_segmentNumber; }; typedef boost::shared_ptr<CapturePort> CapturePortRef; |