obs

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitObs

func InitObs(in chan interface{}, out chan interface{})

Types

type ChangeSet

type ChangeSet struct {
	ChangedChannels []Channel
}

type Channel

type Channel struct {
	Name        string
	Visible     bool
	Muted       bool
	Pan         float64
	Volume      float64
	MonitorType string
	DelayMS     float64
	Tracks      []bool
}

type ChannelList

type ChannelList struct {
	FirstChannel int
	// 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) 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) 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) SetTracks

func (l *ChannelList) SetTracks(name string, tracksEnabled map[int]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 ObsState added in v0.2.4

type ObsState struct {
	StateName string
	LedName   string
	State     bool
}

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

func (s *ObsStates) DeleteState(name string, state bool)

func (*ObsStates) GetState added in v0.2.4

func (s *ObsStates) GetState(name string) *ObsState

func (*ObsStates) SendAll added in v0.2.4

func (s *ObsStates) SendAll()

func (*ObsStates) SetState added in v0.2.4

func (s *ObsStates) SetState(name string, state bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL