- Posts: 2
- Joined: Wed Sep 09, 2020 12:02 pm
- Real Name: Jasmin Kruezi
Hey everyone,
my goal is to create a "One-Button" solution to save the current status of a ATEM device. I found the IBMDSwitcherSaveRecall Interface and make it work in c# like so:
Now I am trying the whole thing in C++, having the (probably pretty naive) goal to make it work on a raspberry pi to eliminate the need to hook up a computer, just to save settings. The problem is, I cant figure out how to cast (like in the C# example) or somehow initialize the SwitcherSaveRecall variable, and without having this work, I dont know if the Save-method even work. Do someone have a functioning implementation to show?
This is my attempt so far:
Thanks everyone
best wishes
J
my goal is to create a "One-Button" solution to save the current status of a ATEM device. I found the IBMDSwitcherSaveRecall Interface and make it work in c# like so:
- Code: Select all
static void Main(string[] args)
{
// Code out of the "SimpleSwitcherExampleCSharp" example of the SDK
IBMDSwitcherDiscovery discovery = new CBMDSwitcherDiscovery();
IBMDSwitcher switcher;
_BMDSwitcherConnectToFailure failureReason;
discovery.ConnectTo("10.30.1.183", out switcher, out failureReason);
Console.WriteLine("Connected to switcher");
var atem = new AtemSwitcher(switcher);
// Here it happens
IBMDSwitcherSaveRecall speicher = switcher as IBMDSwitcherSaveRecall;
speicher.Save(_BMDSwitcherSaveRecallType.bmdSwitcherSaveRecallTypeStartupState);
// Here it ends
}
Now I am trying the whole thing in C++, having the (probably pretty naive) goal to make it work on a raspberry pi to eliminate the need to hook up a computer, just to save settings. The problem is, I cant figure out how to cast (like in the C# example) or somehow initialize the SwitcherSaveRecall variable, and without having this work, I dont know if the Save-method even work. Do someone have a functioning implementation to show?
This is my attempt so far:
- Code: Select all
IBMDSwitcherSaveRecall* saver = ???;
saver->Save(bmdSwitcherSaveRecallTypeStartupState);
Thanks everyone
best wishes
J