Skip to content

Commit

Permalink
SOF-2289 AudioBed also listen for a timelineObject with the AudioBedS…
Browse files Browse the repository at this point in the history
…top class for it to stop.
  • Loading branch information
LindvedKrvang committed Oct 1, 2024
1 parent 6d7b9f7 commit 3d61556
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tv2-common/cues/lyd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import { Tv2OutputLayer } from '../../tv2-constants/tv2-output-layer'
import { Tv2PieceType } from '../../tv2-constants/tv2-piece-type'
import { TV2ShowStyleConfig } from '../blueprintConfig'

const STOP_AUDIO_BED_CLASS: string = 'STOP_AUDIO_BED_CLASS'

export function EvaluateLYD(
context: ShowStyleContext,
pieces: IBlueprintPiece[],
Expand Down Expand Up @@ -133,7 +135,7 @@ function LydContent(
deviceType: TSR.DeviceType.ABSTRACT,
type: 'empty'
},
classes: []
classes: [STOP_AUDIO_BED_CLASS]
})
]
})
Expand Down Expand Up @@ -180,7 +182,8 @@ function LydContent(
literal<TSR.TimelineObjSisyfosChannel>({
id: '',
enable: {
start: 0
start: 0,
end: `.${STOP_AUDIO_BED_CLASS}`
},
priority: 1,
layer: SharedSisyfosLLayer.SisyfosSourceAudiobed,
Expand Down

0 comments on commit 3d61556

Please sign in to comment.