Skip to content

Commit b54fb96

Browse files
committed
fix: disable new code for v8.1
1 parent 8b1781c commit b54fb96

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

LibAtem.MockTests/AudioRouting/TestAudioRoutingOutput.cs

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public TestAudioRoutingOutput(ITestOutputHelper output, AtemServerClientPool poo
2222
_pool = pool;
2323
}
2424

25+
#if !ATEM_v8_1
26+
2527
private static Dictionary<uint, IBMDSwitcherAudioRoutingOutput> GetRoutableOutputs(AtemMockServerWrapper helper)
2628
{
2729
var res = new Dictionary<uint, IBMDSwitcherAudioRoutingOutput>();
@@ -100,4 +102,7 @@ public void TestName()
100102
});
101103
}
102104
}
105+
106+
#endif
107+
103108
}

LibAtem.MockTests/AudioRouting/TestAudioRoutingSource.cs

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public TestAudioRoutingSource(ITestOutputHelper output, AtemServerClientPool poo
2222
_pool = pool;
2323
}
2424

25+
#if !ATEM_v8_1
26+
2527
private static Dictionary<uint, IBMDSwitcherAudioRoutingSource> GetRoutableSources(AtemMockServerWrapper helper)
2628
{
2729
var res = new Dictionary<uint, IBMDSwitcherAudioRoutingSource>();
@@ -69,4 +71,7 @@ public void TestName()
6971
});
7072
}
7173
}
74+
75+
#endif
76+
7277
}

LibAtem.MockTests/SdkState/SdkStateBuilder.cs

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public static AtemState Build(IBMDSwitcher switcher, AtemStateBuilderSettings up
205205

206206
private static void AudioRouting(AtemState state, IBMDSwitcher switcher)
207207
{
208+
#if !ATEM_v8_1
208209
var outputIterator = AtemSDKConverter.CastSdk<IBMDSwitcherAudioRoutingOutputIterator>(switcher.CreateIterator);
209210
var outputsList = AtemSDKConverter.ToList<IBMDSwitcherAudioRoutingOutput>(outputIterator.Next);
210211

@@ -256,6 +257,7 @@ private static void AudioRouting(AtemState state, IBMDSwitcher switcher)
256257

257258
state.AudioRouting.Sources.Add(id, sourceState);
258259
}
260+
#endif
259261
}
260262

261263
private static void DveInfo(AtemState state, IBMDSwitcher switcher)

LibAtem.MockTests/SdkState/SourceStateBuilder.cs

+4
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ public static void Build(AtemState state, IBMDSwitcher switcher)
2727
if (input is IBMDSwitcherInputAux aux) {
2828
auxes.Add(AuxInput(aux));
2929

30+
#if !ATEM_v8_1
3031
if (input is IBMDSwitcherDisplayClock dc)
3132
{
3233
if (src != VideoSource.Auxilary1) throw new Exception("Got IBMDSwitcherDisplayClock for unexpected aux");
3334

3435
state.DisplayClock = DisplayClock(dc);
3536
}
37+
#endif
3638
}
3739

3840
if (input is IBMDSwitcherInputColor col)
@@ -100,6 +102,7 @@ private static ColorState ColorInput(IBMDSwitcherInputColor props)
100102
return state;
101103
}
102104

105+
#if !ATEM_v8_1
103106
private static DisplayClockState DisplayClock(IBMDSwitcherDisplayClock props)
104107
{
105108
var state = new DisplayClockState();
@@ -140,4 +143,5 @@ private static DisplayClockState DisplayClock(IBMDSwitcherDisplayClock props)
140143
return state;
141144
}
142145
}
146+
#endif
143147
}

LibAtem.MockTests/TestDisplayClock.cs

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public TestDisplayClock(ITestOutputHelper output, AtemServerClientPool pool)
2626
_pool = pool;
2727
}
2828

29+
#if !ATEM_v8_1
30+
2931
[Fact]
3032
public void TestEnabled()
3133
{
@@ -387,4 +389,7 @@ private static IBMDSwitcherDisplayClock GetDisplayClock(AtemMockServerWrapper he
387389
return null;
388390
}
389391
}
392+
393+
#endif
394+
390395
}

0 commit comments

Comments
 (0)