mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Implementation of OSC settings and translator
Translations are in a config xml file in settings directory, and can be directly edited in text by the user. Settings UI allows changing Ports for incoming and outgoing UDP.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#ifndef CONTROL_H
|
||||
#define CONTROL_H
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <condition_variable>
|
||||
#include "NetworkToolkit.h"
|
||||
|
||||
#define OSC_SYNC "/sync"
|
||||
@@ -61,7 +64,7 @@ public:
|
||||
bool init();
|
||||
void terminate();
|
||||
|
||||
// void setOscPort(int P);
|
||||
std::string translate (std::string addresspattern);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -89,8 +92,13 @@ private:
|
||||
|
||||
static void listen();
|
||||
RequestListener listener_;
|
||||
std::condition_variable receiver_end_;
|
||||
UdpListeningReceiveSocket *receiver_;
|
||||
|
||||
std::map<std::string, std::string> translation_;
|
||||
bool configOscLoad();
|
||||
void configOscReset();
|
||||
|
||||
};
|
||||
|
||||
#endif // CONTROL_H
|
||||
|
||||
Reference in New Issue
Block a user