blob: 3272257e254e459f9a7347a3505e1760e265fa3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
};
|