comparison core/ReceiveAudioThread.cpp @ 135:e77e2e712fbc ClockSync

To work with the ClockSync plugin
author Giulio Moro <giuliomoro@yahoo.it>
date Sat, 12 Sep 2015 20:05:55 +0100
parents 04b1678614c9
children
comparison
equal deleted inserted replaced
133:04b1678614c9 135:e77e2e712fbc
201 if (!(samplingRateRatio>0 && samplingRateRatio<=2)) 201 if (!(samplingRateRatio>0 && samplingRateRatio<=2))
202 return -2; 202 return -2;
203 if(isListening()==false) 203 if(isListening()==false)
204 return -1; 204 return -1;
205 static int numCalls=0; 205 static int numCalls=0;
206 if(writePointer<0 || (numCalls&16383)==0){ //if writePointer has not been initalized yet ... 206 if(writePointer<0 /*|| (numCalls&16383)==0*/){ //if writePointer has not been initalized yet ...
207 #ifdef USE_JUCE 207 #ifdef USE_JUCE
208 #else //debug 208 #else //debug
209 rt_printf("reinit the writePointer, readPointer: %f;\n",readPointer); 209 rt_printf("reinit the writePointer, readPointer: %f;\n",readPointer);
210 readPointer=0; 210 readPointer=0;
211 #endif /* USE_JUCE */ 211 #endif /* USE_JUCE */