Documentation
¶
Index ¶
- Constants
- Variables
- func InitObs(in chan interface{}, out chan interface{})
- type Channel
- type ChannelList
- func (l *ChannelList) AddChannel(name string)
- func (l *ChannelList) AddInput(inputName string)
- func (l *ChannelList) ChangeFaderBank(amount int)
- func (l *ChannelList) Clear()
- func (l *ChannelList) GetDelayMS(name string) float64
- func (l *ChannelList) GetMonitorType(name string) string
- func (l *ChannelList) GetPan(name string) float64
- func (l *ChannelList) GetVisible() []Channel
- func (l *ChannelList) GetVisibleName(index byte) string
- func (l *ChannelList) GetVisibleNumber(name string) int
- func (l *ChannelList) RemoveChannel(name string)
- func (l *ChannelList) SetAllInvisible()
- func (l *ChannelList) SetAssignMode(mode byte)
- func (l *ChannelList) SetDelayMS(name string, delay float64)
- func (l *ChannelList) SetMonitorType(name string, mon string)
- func (l *ChannelList) SetMuted(name string, muted bool)
- func (l *ChannelList) SetPan(name string, pan float64)
- func (l *ChannelList) SetSelected(fader byte, selected bool)
- func (l *ChannelList) SetTrack(idx byte, state bool) *Channel
- func (l *ChannelList) SetTracks(name string, tracksEnabled map[string]bool)
- func (l *ChannelList) SetVisible(name string, visible bool)
- func (l *ChannelList) SetVolume(name string, volume float64)
- func (l *ChannelList) SyncMcu()
- func (l *ChannelList) UpdateSpecialInputs() error
- func (l *ChannelList) UpdateVisible()
- type ObsState
- type ObsStates
Constants ¶
View Source
const ( ModeDelay byte = iota Mode_2 ModePan Mode_4 Mode_5 Mode_6 )
Variables ¶
View Source
var ExitWithObs bool
View Source
var ShowHotkeyNames bool
Functions ¶
Types ¶
type Channel ¶
type Channel struct { Name string Visible bool Muted bool Pan float64 Volume float64 MonitorType string DelayMS float64 Tracks map[string]bool }
func NewChannel ¶ added in v0.3.0
type ChannelList ¶
type ChannelList struct { FirstChannel int AssignMode byte SelectedChannel string // contains filtered or unexported fields }
func NewChannelList ¶
func NewChannelList() *ChannelList
func (*ChannelList) AddChannel ¶
func (l *ChannelList) AddChannel(name string)
func (*ChannelList) AddInput ¶
func (l *ChannelList) AddInput(inputName string)
adds an input and gets the basic info (mute state, volume etc)
func (*ChannelList) ChangeFaderBank ¶
func (l *ChannelList) ChangeFaderBank(amount int)
func (*ChannelList) Clear ¶
func (l *ChannelList) Clear()
func (*ChannelList) GetDelayMS ¶ added in v0.2.0
func (l *ChannelList) GetDelayMS(name string) float64
func (*ChannelList) GetMonitorType ¶
func (l *ChannelList) GetMonitorType(name string) string
func (*ChannelList) GetPan ¶ added in v0.5.0
func (l *ChannelList) GetPan(name string) float64
func (*ChannelList) GetVisible ¶
func (l *ChannelList) GetVisible() []Channel
create alphabetically sorted list of visible channels
func (*ChannelList) GetVisibleName ¶
func (l *ChannelList) GetVisibleName(index byte) string
func (*ChannelList) GetVisibleNumber ¶
func (l *ChannelList) GetVisibleNumber(name string) int
func (*ChannelList) RemoveChannel ¶
func (l *ChannelList) RemoveChannel(name string)
func (*ChannelList) SetAllInvisible ¶
func (l *ChannelList) SetAllInvisible()
func (*ChannelList) SetAssignMode ¶ added in v0.5.0
func (l *ChannelList) SetAssignMode(mode byte)
func (*ChannelList) SetDelayMS ¶ added in v0.2.0
func (l *ChannelList) SetDelayMS(name string, delay float64)
func (*ChannelList) SetMonitorType ¶
func (l *ChannelList) SetMonitorType(name string, mon string)
func (*ChannelList) SetMuted ¶
func (l *ChannelList) SetMuted(name string, muted bool)
func (*ChannelList) SetPan ¶
func (l *ChannelList) SetPan(name string, pan float64)
func (*ChannelList) SetSelected ¶ added in v0.2.9
func (l *ChannelList) SetSelected(fader byte, selected bool)
func (*ChannelList) SetTrack ¶ added in v0.3.0
func (l *ChannelList) SetTrack(idx byte, state bool) *Channel
func (*ChannelList) SetTracks ¶
func (l *ChannelList) SetTracks(name string, tracksEnabled map[string]bool)
func (*ChannelList) SetVisible ¶
func (l *ChannelList) SetVisible(name string, visible bool)
func (*ChannelList) SetVolume ¶
func (l *ChannelList) SetVolume(name string, volume float64)
func (*ChannelList) SyncMcu ¶
func (l *ChannelList) SyncMcu()
func (*ChannelList) UpdateSpecialInputs ¶
func (l *ChannelList) UpdateSpecialInputs() error
TODO: check for changes
func (*ChannelList) UpdateVisible ¶
func (l *ChannelList) UpdateVisible()
TODO: other way to get active ones initially?
type ObsStates ¶ added in v0.2.4
type ObsStates struct {
// contains filtered or unexported fields
}
func NewObsStates ¶ added in v0.2.4
func NewObsStates() *ObsStates
func (*ObsStates) DeleteState ¶ added in v0.2.4
Click to show internal directories.
Click to hide internal directories.