diff options
author | Henri Herscher <henri@oreka.org> | 2006-07-26 16:23:53 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-07-26 16:23:53 +0000 |
commit | 71001d96e240d03a98a73688060d476dd5f7c875 (patch) | |
tree | 6643ce2ec2ba8a3da7aed6a3648ea6219a797358 /orkaudio/BatchProcessing.cpp | |
parent | 0f20be2ec5d75afc343cbe7ec35e3480723b4e99 (diff) |
Added command line mcf file transcoding -
The syntax is: #orkaudio transcode myfile.mcf
- The output has the format specified in config.xml.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@310 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/BatchProcessing.cpp')
-rw-r--r-- | orkaudio/BatchProcessing.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/orkaudio/BatchProcessing.cpp b/orkaudio/BatchProcessing.cpp index 5584b9d..efad036 100644 --- a/orkaudio/BatchProcessing.cpp +++ b/orkaudio/BatchProcessing.cpp @@ -106,17 +106,20 @@ void BatchProcessing::ThreadHandler(void *args) { stop = true; } + if(DaemonSingleton::instance()->GetShortLived()) + { + DaemonSingleton::instance()->Stop(); + } } else { fileRef = audioTapeRef->GetAudioFileRef(); - CStdString filename = audioTapeRef->GetFilename(); // Let's work on the tape we have pulled //CStdString threadIdString = IntToString(threadId); LOG4CXX_INFO(LOG.batchProcessingLog, CStdString("Th") + threadIdString + " processing: " + audioTapeRef->GetIdentifier()); - fileRef->MoveOrig(); + //fileRef->MoveOrig(); // #### could do this only when original and output file have the same extension. Irrelevant for now as everything is captured as mcf file fileRef->Open(AudioFile::READ); AudioChunkRef chunkRef; |