Documentation ¶
Index ¶
- type SoundConfig
- func (soundConfig *SoundConfig) DisableSoundTrigger(name string) error
- func (soundConfig *SoundConfig) EnableSoundTrigger(name string) error
- func (soundConfig *SoundConfig) GetDeviceName() string
- func (soundConfig *SoundConfig) GetSoundConfig() []string
- func (soundConfig *SoundConfig) GetSoundTriggerState(name string) bool
- func (soundConfig *SoundConfig) StartSoundConfig(deviceName string, guiButtons chan common.ALight, ...)
- func (soundConfig *SoundConfig) StopSoundConfig()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoundConfig ¶
type SoundConfig struct { SoundTriggers []*common.Trigger // contains filtered or unexported fields }
func NewSoundTrigger ¶
func (*SoundConfig) DisableSoundTrigger ¶
func (soundConfig *SoundConfig) DisableSoundTrigger(name string) error
DisableSoundTrigger - Disable the Trigger.
func (*SoundConfig) EnableSoundTrigger ¶
func (soundConfig *SoundConfig) EnableSoundTrigger(name string) error
EnableSoundTrigger - Register the Trigger.
func (*SoundConfig) GetDeviceName ¶
func (soundConfig *SoundConfig) GetDeviceName() string
func (*SoundConfig) GetSoundConfig ¶
func (soundConfig *SoundConfig) GetSoundConfig() []string
func (*SoundConfig) GetSoundTriggerState ¶
func (soundConfig *SoundConfig) GetSoundTriggerState(name string) bool
GetSoundTriggerState - What state is this trigger in ?
func (*SoundConfig) StartSoundConfig ¶
func (*SoundConfig) StopSoundConfig ¶
func (soundConfig *SoundConfig) StopSoundConfig()
Click to show internal directories.
Click to hide internal directories.