forked from mraerino/atem-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
state.go
54 lines (44 loc) · 1.29 KB
/
state.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package atem
import "github.com/mraerino/atem-go/models"
type Characteristics struct {
ProductName string
Topology models.Topology
MixEffect models.MixEffectConfig
MediaPlayer models.MediaPlayerConfig
MultiViews int
SuperSources int // num of boxes
TallyChannels int
MacroBanks int
}
type SwitcherState struct {
Version struct {
Major int
Minor int
}
Warning string
Power models.PowerStatus
VideoMode models.VideoMode
Inputs map[models.VideoSource]models.InputProperties
Config Characteristics
Program map[int]models.VideoSource
Preview map[int]models.VideoSource
Aux map[int]models.VideoSource
TallyByIndex map[int]models.TallyState
TallyBySource map[models.VideoSource]models.TallyState
MediaPlayer map[int]*models.MediaPlayer
MediaFiles map[int]models.MediaStillFrame
TimeCodeLastChange models.Timecode
}
func NewSwitcherState() SwitcherState {
return SwitcherState{
Inputs: make(map[models.VideoSource]models.InputProperties),
Config: Characteristics{
MixEffect: make(models.MixEffectConfig),
},
Program: make(map[int]models.VideoSource),
Preview: make(map[int]models.VideoSource),
Aux: make(map[int]models.VideoSource),
MediaPlayer: make(map[int]*models.MediaPlayer),
MediaFiles: make(map[int]models.MediaStillFrame),
}
}