diff --git a/server/constants/MixerProtocolPresets.ts b/server/constants/MixerProtocolPresets.ts index 50cc3961..41e593aa 100644 --- a/server/constants/MixerProtocolPresets.ts +++ b/server/constants/MixerProtocolPresets.ts @@ -33,9 +33,9 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocolGeneric } = Ob yamahaQlCl: YamahaQLCL, sslSystemT: SSLSystemT, studerVistaMaster: StuderVistaMaster, -}, CasparCGMaster !== undefined ? { +}, { casparCGMaster: CasparCGMaster -} : {}); +}); /* */ diff --git a/server/constants/mixerProtocols/casparCGMaster.ts b/server/constants/mixerProtocols/casparCGMaster.ts index 8e30bd0b..9b22f3e0 100644 --- a/server/constants/mixerProtocols/casparCGMaster.ts +++ b/server/constants/mixerProtocols/casparCGMaster.ts @@ -90,10 +90,7 @@ let geometry: ICasparCGMixerGeometryFile = { } } -let CasparCGMasterObject: ICasparCGMixerGeometry | undefined = undefined - -if (geometry) { - CasparCGMasterObject = { +let CasparCGMasterObject: ICasparCGMixerGeometry = { protocol: 'CasparCG', label: `CasparCG Audio Mixer`, mode: "master", @@ -159,6 +156,5 @@ if (geometry) { }, }] } -} export const CasparCGMaster = CasparCGMasterObject