emotiva

package module
v0.0.0-...-28442fd Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Control

func Control(c *cli.Context, command string) error

func Ping

func Ping(c *cli.Context) error

func Status

func Status(c *cli.Context, parameters []string) error

Types

type EmotivaController

type EmotivaController struct {
	InfoPort       *net.Conn
	SetupPortTCP   *net.Conn
	MenuNotifyPort *net.Conn
	// contains filtered or unexported fields
}

func NewEmotivaController

func NewEmotivaController(address string) (*EmotivaController, error)

func (*EmotivaController) Close

func (ec *EmotivaController) Close() error

func (*EmotivaController) Control

func (ec *EmotivaController) Control(command string, target interface{}) (string, error)

func (*EmotivaController) Ping

func (*EmotivaController) ReadControl

func (ec *EmotivaController) ReadControl() error

func (*EmotivaController) ReadNotify

func (ec *EmotivaController) ReadNotify() (*Notify, error)

func (*EmotivaController) Status

func (ec *EmotivaController) Status(commands []string, target interface{}) (string, error)

func (*EmotivaController) Subscribe

func (ec *EmotivaController) Subscribe(commands []string, target interface{}) (string, error)

func (*EmotivaController) WriteControl

func (ec *EmotivaController) WriteControl(body string) error

type EmotivaTransponder

type EmotivaTransponder struct {
	XMLName      xml.Name                  `xml:"emotivaTransponder"`
	Model        string                    `xml:"model"`
	DataRevision string                    `xml:"dataRevision"`
	Name         string                    `xml:"name"`
	Control      EmotivaTransponderControl `xml:"control"`
}

type EmotivaTransponderControl

type EmotivaTransponderControl struct {
	Version         string `xml:"version"`
	ControlPort     string `xml:"controlPort"`
	NotifyPort      string `xml:"notifyPort"`
	InfoPort        string `xml:"infoPort"`
	SetupPortTCP    string `xml:"setupPortTCP"`
	MenuNotifyPort  string `xml:"menuNotifyPort"`
	SetupXMLVersion string `xml:"setupXMLVersion"`
}

type Notify

type Notify struct {
	XMLName            xml.Name `xml:"emotivaNotify"`
	Mode               Value    `xml:"mode"`
	SelectedMode       Value    `xml:"selected_mode"`
	Center             Value    `xml:"center"`
	Subwoofer          Value    `xml:"subwoofer"`
	Surround           Value    `xml:"surround"`
	Back               Value    `xml:"back"`
	Width              Value    `xml:"width"`
	Height             Value    `xml:"height"`
	ModeAuto           Value    `xml:"mode_auto"`
	ModeMusic          Value    `xml:"mode_music"`
	ModeMovie          Value    `xml:"mode_movie"`
	SelectedMovieMusic Value    `xml:"selected_movie_music"`
	ModeDirect         Value    `xml:"mode_direct"`
	ModeSurround       Value    `xml:"mode_surround"`
	ModeRefStereo      Value    `xml:"mode_ref_stereo"`
	ModeDolby          Value    `xml:"mode_dolby"`
	ModeDts            Value    `xml:"mode_dts"`
	ModeAllStereo      Value    `xml:"mode_all_stereo"`
	ModeStereo         Value    `xml:"mode_stereo"`
}

type Value

type Value struct {
	Value   string `xml:"value,attr"`
	Visible string `xml:"visible,attr"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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