Skip to content

Commit

Permalink
Adding send-state sub-entry for getting only program/preview (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffeyDev committed Jun 9, 2020
1 parent 519dbe0 commit 0693853
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions atemOSC/OSCReceiver.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}];
Expand Down

0 comments on commit 0693853

Please sign in to comment.