From b86dfa8f6f99713ee4605c30ebb1a58309aaeb8a Mon Sep 17 00:00:00 2001 From: mick grierson Date: Mon, 29 Jun 2015 15:57:31 +0100 Subject: Updating post-hackday --- .../ofxOsc/src/ofxOscParameterSync.h | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 ofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h (limited to 'ofxMaxim/ofxMaximExample_0.8.4_OSX_Granular/ofxOsc/src/ofxOscParameterSync.h') 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; +}; -- cgit v1.3