diff core/ClockSync.cpp @ 144:55c1e591cb2e ClockSync

Added ifdefs for USE_JUCE compatibility
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 14 Sep 2015 21:31:09 +0100
parents 44d07fa9bd03
children 134bff10e561
line wrap: on
line diff
--- a/core/ClockSync.cpp	Mon Sep 14 17:35:18 2015 +0100
+++ b/core/ClockSync.cpp	Mon Sep 14 21:31:09 2015 +0100
@@ -261,8 +261,6 @@
 	}
 	return 1;
 }
-#include <I2c_Codec.h>
-extern I2c_Codec* gAudioCodec;
 void ClockSync::processOffset(double offset){
 	static int calls=0;
 	// TODO: change the flow control below so that it can happen multiple times
@@ -297,7 +295,9 @@
 			calls=11;
 			//TODO: correct for offset
 			float targetSamplingRate=offset>0 ? 44097 : 44103;
+#ifndef USE_JUCE
 			gAudioCodec->setAudioSamplingRate(targetSamplingRate);
+#endif
 //			pastOut[1]=pastOut[2]=pastIn[1]=pastIn[2]=offset;
 			printf("------setAudioSmplingRate to %f\n", targetSamplingRate);
 		}