diff options
author | Henri Herscher <henri@oreka.org> | 2008-05-28 18:59:38 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2008-05-28 18:59:38 +0000 |
commit | c77ed8ceb4a6576253be4604830399e1280593e9 (patch) | |
tree | c47d8fcfd69da26e3254afb927b5d3d48d0d1bd0 /orkbasecxx/CapturePort.h | |
parent | 29a1c9a43ecb56dbf38b2046a68a4a20bd8493c2 (diff) |
Corrected non-lookback problem where tape stop was not being sent when the CapturePort expired because in non-lookback, the AudioTape does not go to the active state (not getting any audio chunks). A tape stop is now forced if this is the case.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@541 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/CapturePort.h')
-rw-r--r-- | orkbasecxx/CapturePort.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/orkbasecxx/CapturePort.h b/orkbasecxx/CapturePort.h index aa80e29..20bbfe8 100644 --- a/orkbasecxx/CapturePort.h +++ b/orkbasecxx/CapturePort.h @@ -40,6 +40,8 @@ public: void AddAudioChunk(AudioChunkRef chunkRef); void AddCaptureEvent(CaptureEventRef eventRef); bool IsExpired(time_t now); + void Finalize(); + private: void LoadFilters(); void FilterAudioChunk(AudioChunkRef& chunkRef); @@ -53,6 +55,7 @@ private: bool m_vadUp; time_t m_lastUpdated; std::list<FilterRef> m_filters; + bool m_needSendStop; }; typedef boost::shared_ptr<CapturePort> CapturePortRef; |