diff DrumTimingLoader_OF/ofxAudioFileLoader/ofxSoundFileLoader.cpp @ 2:50ba55abea8c

updating files to newer version
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sat, 23 Nov 2013 15:49:27 +0000
parents 82352cfc0b23
children
line wrap: on
line diff
--- a/DrumTimingLoader_OF/ofxAudioFileLoader/ofxSoundFileLoader.cpp	Sat Nov 23 15:44:47 2013 +0000
+++ b/DrumTimingLoader_OF/ofxAudioFileLoader/ofxSoundFileLoader.cpp	Sat Nov 23 15:49:27 2013 +0000
@@ -27,8 +27,9 @@
 }
 
 void ofxSoundFileLoader::updateToAudioPosition(const float& audioPosition){
-	
-	audioHolder.playPosition = audioPosition * audioHolder.audioVector.size();
+	//updates info on file as it plays
+	audioHolder.playPosition = audioPosition * audioHolder.length;//size();
+	//printf("update pos %f size %i\n", audioHolder.playPosition, (int)audioHolder.audioVector.size());
 	onsetDetect.playPosition = audioPosition;
 }