- Posts: 2
- Joined: Tue Jun 15, 2021 2:29 pm
- Real Name: Bilal Deniz
Hi Bilal,
I tested the code and did not observe any difference between code built with or without the thread sleep. Are you observing difference yourself?
In your case of IBMDSwitcherMixEffectBlock::SetProgramInput, rather than adding a fixed delay, it is good practice to implement IBMDSwitcherMixEffectBlockCallback to receive feedback of changes to the mix effect block. In your implementation of IBMDSwitcherMixEffectBlockCallback::Notify, filter for event type bmdSwitcherMixEffectBlockEventTypeProgramInputChanged.
Regards
Cameron