# HG changeset patch # User Giulio Moro # Date 1439853184 -3600 # Node ID 836052c86e1e70d0a4a8f18cb98ef53126c0de0f # Parent 207a57538bb783039eeba9e073471502b0400ed2 Updated Scope.h with ifdefs diff -r 207a57538bb7 -r 836052c86e1e include/Scope.h --- a/include/Scope.h Fri Aug 14 05:14:55 2015 +0100 +++ b/include/Scope.h Tue Aug 18 00:13:04 2015 +0100 @@ -4,7 +4,8 @@ #include #include -#define NETWORK_AUDIO_BUFFER_SIZE 400 +#define BUILD_FOR_UDPRECEIVE_PLUGIN +#define NETWORK_AUDIO_BUFFER_SIZE 302 struct networkAudio{ int timestamp; int currentBuffer; @@ -29,19 +30,23 @@ Scope(){ numChannels = NUM_SCOPE_CHANNELS; sampleCount = 0; - +#ifdef BUILD_FOR_UDPRECEIVE_PLUGIN + char server[]="192.168.7.1"; +#else + char server[]="127.0.0.1"; +#endif /* BUILD_FOR_UDPRECEIVE_PLUGIN */ + printf("Sending messages to : %s\n", server); for(int n=0; n