Skip to content

Commit

Permalink
fix: disable new code for v8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jun 12, 2024
1 parent 8b1781c commit b54fb96
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LibAtem.MockTests/AudioRouting/TestAudioRoutingOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public TestAudioRoutingOutput(ITestOutputHelper output, AtemServerClientPool poo
_pool = pool;
}

#if !ATEM_v8_1

private static Dictionary<uint, IBMDSwitcherAudioRoutingOutput> GetRoutableOutputs(AtemMockServerWrapper helper)
{
var res = new Dictionary<uint, IBMDSwitcherAudioRoutingOutput>();
Expand Down Expand Up @@ -100,4 +102,7 @@ public void TestName()
});
}
}

#endif

}

Check failure on line 108 in LibAtem.MockTests/AudioRouting/TestAudioRoutingOutput.cs

View workflow job for this annotation

GitHub Actions / test_v8_0_3_-_v8_1_0

} expected
5 changes: 5 additions & 0 deletions LibAtem.MockTests/AudioRouting/TestAudioRoutingSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public TestAudioRoutingSource(ITestOutputHelper output, AtemServerClientPool poo
_pool = pool;
}

#if !ATEM_v8_1

private static Dictionary<uint, IBMDSwitcherAudioRoutingSource> GetRoutableSources(AtemMockServerWrapper helper)
{
var res = new Dictionary<uint, IBMDSwitcherAudioRoutingSource>();
Expand Down Expand Up @@ -69,4 +71,7 @@ public void TestName()
});
}
}

#endif

}

Check failure on line 77 in LibAtem.MockTests/AudioRouting/TestAudioRoutingSource.cs

View workflow job for this annotation

GitHub Actions / test_v8_0_3_-_v8_1_0

} expected
2 changes: 2 additions & 0 deletions LibAtem.MockTests/SdkState/SdkStateBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public static AtemState Build(IBMDSwitcher switcher, AtemStateBuilderSettings up

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

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

state.AudioRouting.Sources.Add(id, sourceState);
}
#endif
}

private static void DveInfo(AtemState state, IBMDSwitcher switcher)
Expand Down
4 changes: 4 additions & 0 deletions LibAtem.MockTests/SdkState/SourceStateBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ public static void Build(AtemState state, IBMDSwitcher switcher)
if (input is IBMDSwitcherInputAux aux) {
auxes.Add(AuxInput(aux));

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

state.DisplayClock = DisplayClock(dc);
}
#endif
}

if (input is IBMDSwitcherInputColor col)
Expand Down Expand Up @@ -100,6 +102,7 @@ private static ColorState ColorInput(IBMDSwitcherInputColor props)
return state;
}

#if !ATEM_v8_1
private static DisplayClockState DisplayClock(IBMDSwitcherDisplayClock props)
{
var state = new DisplayClockState();
Expand Down Expand Up @@ -140,4 +143,5 @@ private static DisplayClockState DisplayClock(IBMDSwitcherDisplayClock props)
return state;
}
}
#endif
}

Check failure on line 147 in LibAtem.MockTests/SdkState/SourceStateBuilder.cs

View workflow job for this annotation

GitHub Actions / test_v8_0_3_-_v8_1_0

} expected
5 changes: 5 additions & 0 deletions LibAtem.MockTests/TestDisplayClock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public TestDisplayClock(ITestOutputHelper output, AtemServerClientPool pool)
_pool = pool;
}

#if !ATEM_v8_1

[Fact]
public void TestEnabled()
{
Expand Down Expand Up @@ -387,4 +389,7 @@ private static IBMDSwitcherDisplayClock GetDisplayClock(AtemMockServerWrapper he
return null;
}
}

#endif

}

Check failure on line 395 in LibAtem.MockTests/TestDisplayClock.cs

View workflow job for this annotation

GitHub Actions / test_v8_0_3_-_v8_1_0

} expected

0 comments on commit b54fb96

Please sign in to comment.