summaryrefslogtreecommitdiff
path: root/orkaudio/BatchProcessing.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@09dcff7a-b715-0410-9601-b79a96267cd0>2006-04-11 20:51:39 +0000
committer(no author) <(no author)@09dcff7a-b715-0410-9601-b79a96267cd0>2006-04-11 20:51:39 +0000
commit5aceeee0352021d6f14a06e30c8dd89cc998822a (patch)
treee6b23b799690054d4f1bab7a99fb6624457ff15c /orkaudio/BatchProcessing.cpp
parent0feb343edd90b64b15c6ecc2fe24e476843b5cff (diff)
This commit was manufactured by cvs2svn to create tag 'OREKA-0-5-8'.v0-5-8
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/tags/OREKA-0-5-8@215 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/BatchProcessing.cpp')
-rw-r--r--orkaudio/BatchProcessing.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/orkaudio/BatchProcessing.cpp b/orkaudio/BatchProcessing.cpp
index 42816c3..a381958 100644
--- a/orkaudio/BatchProcessing.cpp
+++ b/orkaudio/BatchProcessing.cpp
@@ -236,9 +236,15 @@ void BatchProcessing::ThreadHandler(void *args)
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);
+ //ACE_Time_Value yield;
+ //yield.set(0,1); // 1 us
+ //ACE_OS::sleep(yield);
+
+ // Use this instead, even if it still seems this holds the whole process under Linux instead of this thread only.
+ struct timespec ts;
+ ts.tv_sec = 0;
+ ts.tv_nsec = 1;
+ ACE_OS::nanosleep (&ts, NULL);
}
}