aboutsummaryrefslogtreecommitdiffstats
path: root/ofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h
diff options
context:
space:
mode:
Diffstat (limited to 'ofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h')
-rwxr-xr-xofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h b/ofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h
new file mode 100755
index 0000000..3272257
--- /dev/null
+++ b/ofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h
@@ -0,0 +1,30 @@
+/*
+ * ofxOscParameterSync.h
+ *
+ * Created on: 13/07/2012
+ * Author: arturo
+ */
+
+#pragma once
+
+#include "ofxOscSender.h"
+#include "ofxOscReceiver.h"
+#include "ofParameter.h"
+#include "ofParameterGroup.h"
+
+class ofxOscParameterSync {
+public:
+ ofxOscParameterSync();
+ ~ofxOscParameterSync();
+
+ /// the remote and local ports must be different to avoid collisions
+ void setup(ofParameterGroup & group, int localPort, string remoteHost, int remotePort);
+ void update();
+
+private:
+ void parameterChanged( ofAbstractParameter & parameter );
+ ofxOscSender sender;
+ ofxOscReceiver receiver;
+ ofParameterGroup * syncGroup;
+ bool updatingParameter;
+};