From 0693853e17ec676a7e6c983de82072b83af4ff56 Mon Sep 17 00:00:00 2001 From: SteffeyDev Date: Mon, 8 Jun 2020 23:53:26 -0400 Subject: [PATCH] Adding send-state sub-entry for getting only program/preview (#159) --- README.md | 2 ++ atemOSC/OSCReceiver.mm | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 4e953b2..ccaf690 100644 --- a/README.md +++ b/README.md @@ -285,6 +285,8 @@ Feedback: Enabled for `/atem/hyperdeck/$i/clip`. The state of the HyperDeck is - **Request all feedback available** `/atem/send-status` - This will query the switcher and send back the status for the program/preview, transition control, keyers, and macros + - **Request only Program/Preview/Bar status** `/atem/send-status/mix-effect-block` + - This will query the switcher and send back the status for only program/preview, bar, and preview - e.g. This can be used when a new OSC client device is brought online, so that it gets the current status of the system ### Type Casting diff --git a/atemOSC/OSCReceiver.mm b/atemOSC/OSCReceiver.mm index d9f4e99..22134a6 100644 --- a/atemOSC/OSCReceiver.mm +++ b/atemOSC/OSCReceiver.mm @@ -143,6 +143,10 @@ - (instancetype) initWithDelegate:(AppDelegate *) delegate [appDel sendStatus]; }]; + [self addEndpoint:@"/atem/send-status/mix-effect-block" handler:^void(NSDictionary *d, OSCValue *v) { + [appDel mMixEffectBlockMonitor]->sendStatus(); + }]; + [self addEndpoint:@"/atem/preview" valueType: OSCValInt handler:^void(NSDictionary *d, OSCValue *v) { activateChannel([v intValue], false); }];