made the 3 osc ports configurable via (cross-platform) config scripts and move them outside of well used ranges for UDP

This commit is contained in:
Dave Griffiths
2022-10-14 18:27:59 +01:00
parent 5469a8f253
commit 5e347f7f13
12 changed files with 472 additions and 432 deletions

View File

@ -25,9 +25,9 @@
namespace spiralcore {
class process_thread {
public:
process_thread();
class process_thread {
public:
process_thread(const string &port);
~process_thread();
pthread_mutex_t* m_brain_mutex;
@ -47,10 +47,13 @@ public:
void load_session(const std::string &filename);
void save_session(const std::string &filename);
bool ok() { return m_osc.ok(); }
// only for use in mutex
brain m_source, m_left_target, m_right_target;
private:
private:
OSC_server m_osc;
u32 m_source_block_size;
float m_source_overlap;
@ -64,6 +67,6 @@ private:
renderer *m_left_renderer;
renderer *m_right_renderer;
block_stream *m_block_stream;
};
};
}