diff options
author | Henri Herscher <henri@oreka.org> | 2006-03-22 17:27:33 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-03-22 17:27:33 +0000 |
commit | 8178222dd0e62ded6193a901fa398bc71ea2a743 (patch) | |
tree | fddc327500f20a5c070a22041b650c00f4296719 /orkaudio/BatchProcessing.cpp | |
parent | 5298d5fadf5ba92a302a0aebd946c093dc54ba61 (diff) |
Added BatchProcessingEnhancePriority config parm
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@199 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/BatchProcessing.cpp')
-rw-r--r-- | orkaudio/BatchProcessing.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/orkaudio/BatchProcessing.cpp b/orkaudio/BatchProcessing.cpp index 43e0563..42816c3 100644 --- a/orkaudio/BatchProcessing.cpp +++ b/orkaudio/BatchProcessing.cpp @@ -233,10 +233,13 @@ void BatchProcessing::ThreadHandler(void *args) } outFileRef->WriteChunk(tmpChunkRef); - // Give up CPU to make sure the actual recording always has priority - ACE_Time_Value yield; - yield.set(0,1); // 1 us - ACE_OS::sleep(yield); + if(CONFIG.m_batchProcessingEnhancePriority == false) + { + // Give up CPU between every audio buffer to make sure the actual recording always has priority + ACE_Time_Value yield; + yield.set(0,1); // 1 us + ACE_OS::sleep(yield); + } } fileRef->Close(); |