changeset 219:0183185cab1b mergingClockSync

Removed obsolete Scope class
author Giulio Moro <giuliomoro@yahoo.it>
date Sat, 13 Feb 2016 15:55:33 +0000
parents a94c8e0f4ec7
children 46bd63a50933
files core/NetworkSend.cpp
diffstat 1 files changed, 1 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- a/core/NetworkSend.cpp	Sat Feb 13 05:00:02 2016 +0000
+++ b/core/NetworkSend.cpp	Sat Feb 13 15:55:33 2016 +0000
@@ -240,7 +240,7 @@
 		//  auto duration2 = std::chrono::duration_cast<std::chrono::microseconds>( t2 - t1 ).count();
 		//  if(duration2>0)
 			//  std::cout << "Duration is: " << duration2 <<". Whole loop is: " << duration1 << "\n"; 
-		sleep(1);
+		usleep(1000);
 	}
 #else
 	threadRunning=true;
@@ -251,44 +251,3 @@
 	threadRunning=false;
 #endif
 }
-#ifdef USE_JUCE
-#else
-Scope::Scope(int aNumChannels):
-		channels(aNumChannels)
-{};
-Scope::~Scope(){};
-
-void Scope::log(int channel, float value){
-	if(channel>=getNumChannels()) //TODO: assert this
-		return;
-	channels[channel].log(value);
-}
-
-void Scope::setup(){
-	setup(44100, 9999, "127.0.0.1");
-}
-
-void Scope::setup(float sampleRate, int aPort, const char* aServer){
-	for(int n=0; n<getNumChannels(); n++){
-		channels[n].setup(sampleRate, 128, n, aPort, aServer); //TODO: replace 128 with the actual block size
-	}
-}
-
-void Scope::setPort(int port){
-	for(int n=0; n<getNumChannels(); n++){
-		channels[n].setPort(port);
-	}
-}
-void Scope::setPort(int channel, int aPort){
-	channels[channel].setPort(aPort);
-	printf("Channel %d is now sending to port %d\n", channel, aPort);
-}
-
-int Scope::getNumChannels(){
-	return channels.size();
-}
-
-void Scope::sendData(){
-	NetworkSend::sendAllData();
-}
-#endif