Documentation
¶
Index ¶
- type Control
- func (c *Control) CheckMuted() (bool, error)
- func (c *Control) GetWSInfo() gin.H
- func (c *Control) HandleWSMessage(ws *websocket.Conn, action int, value string)
- func (c *Control) Initialize() error
- func (c *Control) Notify(t plugin.Notification)
- func (c *Control) Run(haltCtx context.Context, cb chan<- plugin.Callback) <-chan error
- func (c *Control) ToggleMuted() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct {
// contains filtered or unexported fields
}
func NewVolumeControl ¶
NewVolumeControl returns a controller for toggling default input device's muted status. The controller is safe for multiple goroutines.
func (*Control) CheckMuted ¶
CheckMuted returns the default recording device's muted status
func (*Control) HandleWSMessage ¶
func (*Control) Initialize ¶
Initialize satisfies system/plugin.Plugin
func (*Control) Notify ¶
func (c *Control) Notify(t plugin.Notification)
Notify satisfies system/plugin.Plugin
func (*Control) ToggleMuted ¶
ToggleMuted toggles the default recording device's muted status. Note: This should be called after CheckMuted() has been called once.
Click to show internal directories.
Click to hide internal directories.