Improved OSC control for Batch, with sync status

This commit is contained in:
Bruno Herbelin
2023-02-19 22:06:58 +01:00
parent 1f1780597c
commit c28685c700
2 changed files with 95 additions and 30 deletions

View File

@@ -24,7 +24,7 @@
#define OSC_ALL "/all"
#define OSC_SELECTION "/selection"
#define OSC_BATCH "/batch#"
#define OSC_BATCH "(\\/batch#)[[:digit:]]+$"
#define OSC_CURRENT "/current"
#define OSC_NEXT "/next"
#define OSC_PREVIOUS "/previous"
@@ -135,6 +135,8 @@ protected:
osc::ReceivedMessageArgumentStream arguments);
bool receiveSourceAttribute(Source *target, const std::string &attribute,
osc::ReceivedMessageArgumentStream arguments);
bool receiveBatchAttribute(int batch, const std::string &attribute,
osc::ReceivedMessageArgumentStream arguments);
bool receiveSessionAttribute(const std::string &attribute,
osc::ReceivedMessageArgumentStream arguments);
void receiveMultitouchAttribute(const std::string &attribute,
@@ -143,6 +145,7 @@ protected:
std::string target, Source *s = nullptr);
void sendSourcesStatus(const IpEndpointName& remoteEndpoint,
osc::ReceivedMessageArgumentStream arguments);
void sendBatchStatus(const IpEndpointName& remoteEndpoint);
void sendOutputStatus(const IpEndpointName& remoteEndpoint);
private: