void IBMDSwitcherMixEffectBlockCallback.Notify(_BMDSwitcherMixEffectBlockEventType eventType) { switch (eventType) { case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeProgramInputChanged: ProgramInputChanged?.Invoke(this, null); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypePreviewInputChanged: PreviewInputChanged?.Invoke(this, null); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeFadeToBlackFullyBlackChanged: FateToBlackFullyChanged?.Invoke(this, null); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeTransitionFramesRemainingChanged: TransitionFramesRemainingChanged?.Invoke(this, null); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeTransitionPositionChanged: TransitionPositionChanged?.Invoke(this, null); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeInTransitionChanged: InTransitionChanged?.Invoke(this, null); break; default: break; } }
public void Notify(_BMDSwitcherMixEffectBlockEventType eventType) { switch (eventType) { case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeProgramInputChanged: ProgramInputChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.PGMChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypePreviewInputChanged: PreviewInputChanged?.Invoke(this, new MixEffectsEventArgs() { Input = PreviewInput, InTransition = InTransition, MEBus = MEBuses.Preview, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.PVWChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeTransitionPositionChanged: TransitionPositionChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.TransitionPositionChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeTransitionFramesRemainingChanged: TransitionFramesRemainingChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.TransitionFramesRemainingChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeInTransitionChanged: InTransitionChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.InTransitionChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeFadeToBlackFramesRemainingChanged: FadeToBlackFramesRemainingChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.FadeToBlackFramesRemainingChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeInFadeToBlackChanged: InFadeToBlackChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.InFadeToBlackChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypePreviewLiveChanged: PreviewLiveChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Preview, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.PreviewLiveChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypePreviewTransitionChanged: PreviewTransitionChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Preview, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.PreviewTransitionChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeInputAvailabilityMaskChanged: InputAvailabilityMaskChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.None, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.InputAvailabilityMaskChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeFadeToBlackRateChanged: FadeToBlackRateChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.None, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.FadeToBlackRateChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeFadeToBlackFullyBlackChanged: FadeToBlackFullyBlackChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.FadeToBlackFullyBlackChanged }); break; case _BMDSwitcherMixEffectBlockEventType.bmdSwitcherMixEffectBlockEventTypeFadeToBlackInTransitionChanged: FadeToBlackInTransitionChanged?.Invoke(this, new MixEffectsEventArgs() { Input = ProgramInput, InTransition = InTransition, MEBus = MEBuses.Program, TransitionFramesRemaining = TransitionFramesRemaining, TransitionPosition = TransitionPosition, MixEffectsIndex = this.MEBlockIndex, MixEffectsEventType = AtemMixEffectsEventTypes.FadeToBlackInTransitionChanged }); break; default: break; } }