diff scanpath.mm @ 1:1d1bf0aac99e

This version was the first submitted to the app store.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Thu, 22 Nov 2012 12:15:19 +0000
parents c667dfe12d47
children d346ddc50f70
line wrap: on
line diff
--- a/scanpath.mm	Mon Nov 19 13:00:42 2012 +0000
+++ b/scanpath.mm	Thu Nov 22 12:15:19 2012 +0000
@@ -142,6 +142,8 @@
     // swap old , new
     double * temp;
 
+    // TODO THRED MUTEX HERE!??
+    
     switch(scanMode){
         case DISPLACEMENT:
             // now fill with new values
@@ -171,6 +173,8 @@
             
           
     }
+    
+    // END THREAD MUTEX
  
     // reset the interp between frames
     if(audioAccessing){
@@ -207,10 +211,14 @@
     if (updateAccessing){
         cout << "update is accessing while audio is\n";
     }
+    
+    // TODO THRED MUTEX HERE!??
+    
     double oldsample = (1 - frac) * wavetableOld[n0] + frac * wavetableOld[n1];
     
     double newsample = (1 - frac) * wavetableNew[n0] + frac * wavetableNew[n1];
     
+    // END THREAD MUTEX
     audioAccessing = false;
     
     frameInterpolator += framesPerSample;