Implementation of Session control

With Session recall from OSC
This commit is contained in:
Bruno Herbelin
2021-12-26 01:20:44 +01:00
parent 1cb448c42e
commit cde055e29b
3 changed files with 62 additions and 9 deletions

View File

@@ -18,7 +18,6 @@
#define OSC_ALL "/all"
#define OSC_SELECTED "/selected"
#define OSC_CURRENT "/current"
#define OSC_VERSION "/version"
#define OSC_NEXT "/next"
#define OSC_PREVIOUS "/previous"
@@ -35,6 +34,8 @@
#define OSC_SOURCE_TURN "/turn"
#define OSC_SOURCE_RESET "/reset"
#define OSC_SESSION "/session"
#define OSC_SESSION_VERSION "/version"
class Session;
class Source;
@@ -76,6 +77,9 @@ protected:
bool receiveSourceAttribute(Source *target, const std::string &attribute,
osc::ReceivedMessageArgumentStream arguments);
bool receiveSessionAttribute(const std::string &attribute,
osc::ReceivedMessageArgumentStream arguments);
void sendCurrentSourceAttibutes(const IpEndpointName& remoteEndpoint);
void sendSourcesStatus(const IpEndpointName& remoteEndpoint, osc::ReceivedMessageArgumentStream arguments);
void sendOutputStatus(const IpEndpointName& remoteEndpoint);