private static IBMDSwitcherAudioMonitorOutput GetMonitor(AtemMockServerWrapper helper) { var mixer = TestAudioProgramOut.GetAudioMixer(helper); var iterator = AtemSDKConverter.CastSdk <IBMDSwitcherAudioMonitorOutputIterator>(mixer.CreateIterator); var headphones = AtemSDKConverter.IterateList <IBMDSwitcherAudioMonitorOutput, IBMDSwitcherAudioMonitorOutput>(iterator.Next, (p, i) => p); return(headphones.Single()); }
public static IBMDSwitcherFairlightAudioHeadphoneOutput GetMonitor(AtemMockServerWrapper helper) { IBMDSwitcherFairlightAudioMixer mixer = TestFairlightProgramOut.GetFairlightMixer(helper); var iterator = AtemSDKConverter.CastSdk <IBMDSwitcherFairlightAudioHeadphoneOutputIterator>(mixer.CreateIterator); var monitors = AtemSDKConverter.IterateList <IBMDSwitcherFairlightAudioHeadphoneOutput, IBMDSwitcherFairlightAudioHeadphoneOutput>(iterator.Next, (s, i) => s); return(monitors.SingleOrDefault()); }
private static List <Tuple <IBMDSwitcherFairlightAudioEqualizerBand, uint> > GetSampleOfBands(IBMDSwitcherFairlightAudioEqualizer eq) { var it = AtemSDKConverter.CastSdk <IBMDSwitcherFairlightAudioEqualizerBandIterator>(eq.CreateIterator); var allBands = AtemSDKConverter .IterateList <IBMDSwitcherFairlightAudioEqualizerBand, Tuple <IBMDSwitcherFairlightAudioEqualizerBand, uint> >(it.Next, Tuple.Create); return(Randomiser.SelectionOfGroup(allBands, 3).ToList()); }