From 785d56c0c5bd4222e8ed5f63ad29bfd3f76c1ae1 Mon Sep 17 00:00:00 2001
From: Jakob Voigts <jvoigts@mit.edu>
Date: Thu, 30 May 2013 19:05:33 -0400
Subject: [PATCH] Solved accumulating delay issue

just changed SAMPLES_PER_DATA_BLOCK back to 300, this probably requires
a real bug fix somewhere else, not sure why this is an issue.
---
 Source/Processors/DataThreads/RHD2000Thread.cpp             | 4 +---
 Source/Processors/DataThreads/rhythm-api/rhd2000datablock.h | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Source/Processors/DataThreads/RHD2000Thread.cpp b/Source/Processors/DataThreads/RHD2000Thread.cpp
index 6eb3a7918..ee53e742b 100644
--- a/Source/Processors/DataThreads/RHD2000Thread.cpp
+++ b/Source/Processors/DataThreads/RHD2000Thread.cpp
@@ -817,8 +817,6 @@ bool RHD2000Thread::updateBuffer()
     bool return_code;
 	
 
-    for (int n = 0; n < 10; n++)
-    {
         if (evalBoard->numWordsInFifo() >= blockSize)
         {
             return_code = evalBoard->readDataBlock(dataBlock);
@@ -897,7 +895,7 @@ bool RHD2000Thread::updateBuffer()
             }
 
         }
-    }
+    
 
     if (dacOutputShouldChange)
     {
diff --git a/Source/Processors/DataThreads/rhythm-api/rhd2000datablock.h b/Source/Processors/DataThreads/rhythm-api/rhd2000datablock.h
index 3a48746f7..d27a2c3ee 100755
--- a/Source/Processors/DataThreads/rhythm-api/rhd2000datablock.h
+++ b/Source/Processors/DataThreads/rhythm-api/rhd2000datablock.h
@@ -20,7 +20,7 @@
 #ifndef RHD2000DATABLOCK_H
 #define RHD2000DATABLOCK_H
 
-#define SAMPLES_PER_DATA_BLOCK 60
+#define SAMPLES_PER_DATA_BLOCK 300
 #define RHD2000_HEADER_MAGIC_NUMBER 0xc691199927021942
 
 using namespace std;
-- 
GitLab