diff src/testApp.cpp @ 40:0d66ecd1f4d3

added output file writing to export alignment data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 25 Apr 2012 00:24:20 +0100
parents f5de07b4d733
children 6a7982661703
line wrap: on
line diff
--- a/src/testApp.cpp	Tue Apr 24 23:57:10 2012 +0100
+++ b/src/testApp.cpp	Wed Apr 25 00:24:20 2012 +0100
@@ -41,6 +41,8 @@
 	
 	checkForOSCmessages();
 	
+	outputWriter.writeOutput(eventMatcher.synchroniser.recordedPositionTimeSent, eventMatcher.synchroniser.recordedPositionMillis, eventMatcher.synchroniser.playingPositionMillis);
+	
 }
 
 void testApp::checkForOSCmessages(){
@@ -97,12 +99,14 @@
 			printf("start!\n");
 			printf("STRART TIME IN %i\n", ofGetElapsedTimeMillis());
 			eventMatcher.startPlaying();
+			outputWriter.openFile();
 			printf("TIME OUT %i\n", ofGetElapsedTimeMillis());
 		}
 		
 		if ( m.getAddress() == "/stop" ){
 			printf("stop!\n");
 			eventMatcher.stopPlaying();
+			outputWriter.closeFile();
 		}
 		
 		if ( m.getAddress() == "/accompanimentRatio" ){