summaryrefslogtreecommitdiff
path: root/orkbasecxx/AudioTape.cpp
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-09-12 18:24:50 +0000
committerHenri Herscher <henri@oreka.org>2007-09-12 18:24:50 +0000
commit9a9d5268c35a25a6c574db889fbe7300a650d900 (patch)
treebf21c0b7b3838d69c3bdb38f5d36d9ac83a7e62e /orkbasecxx/AudioTape.cpp
parent18dd3cfeaa01293e3a575b53acc633955ce738cd (diff)
Reporting READY state is now a tape processor.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@487 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/AudioTape.cpp')
-rw-r--r--orkbasecxx/AudioTape.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/orkbasecxx/AudioTape.cpp b/orkbasecxx/AudioTape.cpp
index 09e8418..ec0de0c 100644
--- a/orkbasecxx/AudioTape.cpp
+++ b/orkbasecxx/AudioTape.cpp
@@ -316,7 +316,12 @@ void AudioTape::GetMessage(MessageRef& msgRef)
msgRef.reset(new TapeMsg);
TapeMsg* pTapeMsg = (TapeMsg*)msgRef.get();
- if(captureEventRef->m_type == CaptureEvent::EtStop || captureEventRef->m_type == CaptureEvent::EtStart || captureEventRef->m_type == CaptureEvent::EtReady || captureEventRef->m_type == CaptureEvent::EtUpdate)
+ if(captureEventRef.get() == 0)
+ {
+ // No more events, the tape is ready
+ PopulateTapeMessage(pTapeMsg, CaptureEvent::EtReady);
+ }
+ else if(captureEventRef->m_type == CaptureEvent::EtStop || captureEventRef->m_type == CaptureEvent::EtStart || captureEventRef->m_type == CaptureEvent::EtUpdate)
{
PopulateTapeMessage(pTapeMsg, captureEventRef->m_type);
}