Skip to content

Commit

Permalink
Merge branch 'josephdadams:master' into fix_603_build_docker_image
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocke4f authored Jan 13, 2024
2 parents c7c85e0 + d78c257 commit ff83b24
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/sources/NewtekTricaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ export class NewtekTricasterSource extends TallyInput {
else {
let shortcut_states = Object.entries(result['data']['shortcut_states']);

// Clear the busses before we update based on Tricast input
this.removeBusFromAllAddresses("program");
this.removeBusFromAllAddresses("preview");

// Loop through the data and set preview and program based on received data.
// Example input from page 62: https://downloads.newtek.com/LiveProductionSystems/VMC1/Automation%20and%20Integration%20Guide.pdf
//
Expand Down Expand Up @@ -90,6 +86,18 @@ export class NewtekTricasterSource extends TallyInput {


public processTricasterTally(sourceId, sourceArray, tallyType?) {
// Clear the busses before we update based on received Tricast input
switch(tallyType) {
case 'preview_tally':
this.removeBusFromAllAddresses("preview");
break;
case 'program_tally':
this.removeBusFromAllAddresses("program");
break;
default:
break;
}

for (let i = 0; i < sourceArray.length; i++) {
let tricasterSourceFound = false;
for (let j = 0; j < this.tallydata_TC.length; j++) {
Expand Down

0 comments on commit ff83b24

Please sign in to comment.