From c77ed8ceb4a6576253be4604830399e1280593e9 Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Wed, 28 May 2008 18:59:38 +0000 Subject: 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 --- orkbasecxx/CapturePort.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'orkbasecxx/CapturePort.h') 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 m_filters; + bool m_needSendStop; }; typedef boost::shared_ptr CapturePortRef; -- cgit v1.2.3