renderingcontrol

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	XMLName                  xml.Name                      `xml:"s:Body"`
	GetMute                  *GetMuteArgs                  `xml:"u:GetMute,omitempty"`
	SetMute                  *SetMuteArgs                  `xml:"u:SetMute,omitempty"`
	ResetBasicEQ             *ResetBasicEQArgs             `xml:"u:ResetBasicEQ,omitempty"`
	ResetExtEQ               *ResetExtEQArgs               `xml:"u:ResetExtEQ,omitempty"`
	GetVolume                *GetVolumeArgs                `xml:"u:GetVolume,omitempty"`
	SetVolume                *SetVolumeArgs                `xml:"u:SetVolume,omitempty"`
	SetRelativeVolume        *SetRelativeVolumeArgs        `xml:"u:SetRelativeVolume,omitempty"`
	GetVolumeDB              *GetVolumeDBArgs              `xml:"u:GetVolumeDB,omitempty"`
	SetVolumeDB              *SetVolumeDBArgs              `xml:"u:SetVolumeDB,omitempty"`
	GetVolumeDBRange         *GetVolumeDBRangeArgs         `xml:"u:GetVolumeDBRange,omitempty"`
	GetBass                  *GetBassArgs                  `xml:"u:GetBass,omitempty"`
	SetBass                  *SetBassArgs                  `xml:"u:SetBass,omitempty"`
	GetTreble                *GetTrebleArgs                `xml:"u:GetTreble,omitempty"`
	SetTreble                *SetTrebleArgs                `xml:"u:SetTreble,omitempty"`
	GetEQ                    *GetEQArgs                    `xml:"u:GetEQ,omitempty"`
	SetEQ                    *SetEQArgs                    `xml:"u:SetEQ,omitempty"`
	GetLoudness              *GetLoudnessArgs              `xml:"u:GetLoudness,omitempty"`
	SetLoudness              *SetLoudnessArgs              `xml:"u:SetLoudness,omitempty"`
	GetSupportsOutputFixed   *GetSupportsOutputFixedArgs   `xml:"u:GetSupportsOutputFixed,omitempty"`
	GetOutputFixed           *GetOutputFixedArgs           `xml:"u:GetOutputFixed,omitempty"`
	SetOutputFixed           *SetOutputFixedArgs           `xml:"u:SetOutputFixed,omitempty"`
	GetHeadphoneConnected    *GetHeadphoneConnectedArgs    `xml:"u:GetHeadphoneConnected,omitempty"`
	RampToVolume             *RampToVolumeArgs             `xml:"u:RampToVolume,omitempty"`
	RestoreVolumePriorToRamp *RestoreVolumePriorToRampArgs `xml:"u:RestoreVolumePriorToRamp,omitempty"`
	SetChannelMap            *SetChannelMapArgs            `xml:"u:SetChannelMap,omitempty"`
	SetRoomCalibrationX      *SetRoomCalibrationXArgs      `xml:"u:SetRoomCalibrationX,omitempty"`
	GetRoomCalibrationStatus *GetRoomCalibrationStatusArgs `xml:"u:GetRoomCalibrationStatus,omitempty"`
	SetRoomCalibrationStatus *SetRoomCalibrationStatusArgs `xml:"u:SetRoomCalibrationStatus,omitempty"`
}

type BodyResponse

type BodyResponse struct {
	XMLName                  xml.Name                          `xml:"Body"`
	GetMute                  *GetMuteResponse                  `xml:"GetMuteResponse,omitempty"`
	SetMute                  *SetMuteResponse                  `xml:"SetMuteResponse,omitempty"`
	ResetBasicEQ             *ResetBasicEQResponse             `xml:"ResetBasicEQResponse,omitempty"`
	ResetExtEQ               *ResetExtEQResponse               `xml:"ResetExtEQResponse,omitempty"`
	GetVolume                *GetVolumeResponse                `xml:"GetVolumeResponse,omitempty"`
	SetVolume                *SetVolumeResponse                `xml:"SetVolumeResponse,omitempty"`
	SetRelativeVolume        *SetRelativeVolumeResponse        `xml:"SetRelativeVolumeResponse,omitempty"`
	GetVolumeDB              *GetVolumeDBResponse              `xml:"GetVolumeDBResponse,omitempty"`
	SetVolumeDB              *SetVolumeDBResponse              `xml:"SetVolumeDBResponse,omitempty"`
	GetVolumeDBRange         *GetVolumeDBRangeResponse         `xml:"GetVolumeDBRangeResponse,omitempty"`
	GetBass                  *GetBassResponse                  `xml:"GetBassResponse,omitempty"`
	SetBass                  *SetBassResponse                  `xml:"SetBassResponse,omitempty"`
	GetTreble                *GetTrebleResponse                `xml:"GetTrebleResponse,omitempty"`
	SetTreble                *SetTrebleResponse                `xml:"SetTrebleResponse,omitempty"`
	GetEQ                    *GetEQResponse                    `xml:"GetEQResponse,omitempty"`
	SetEQ                    *SetEQResponse                    `xml:"SetEQResponse,omitempty"`
	GetLoudness              *GetLoudnessResponse              `xml:"GetLoudnessResponse,omitempty"`
	SetLoudness              *SetLoudnessResponse              `xml:"SetLoudnessResponse,omitempty"`
	GetSupportsOutputFixed   *GetSupportsOutputFixedResponse   `xml:"GetSupportsOutputFixedResponse,omitempty"`
	GetOutputFixed           *GetOutputFixedResponse           `xml:"GetOutputFixedResponse,omitempty"`
	SetOutputFixed           *SetOutputFixedResponse           `xml:"SetOutputFixedResponse,omitempty"`
	GetHeadphoneConnected    *GetHeadphoneConnectedResponse    `xml:"GetHeadphoneConnectedResponse,omitempty"`
	RampToVolume             *RampToVolumeResponse             `xml:"RampToVolumeResponse,omitempty"`
	RestoreVolumePriorToRamp *RestoreVolumePriorToRampResponse `xml:"RestoreVolumePriorToRampResponse,omitempty"`
	SetChannelMap            *SetChannelMapResponse            `xml:"SetChannelMapResponse,omitempty"`
	SetRoomCalibrationX      *SetRoomCalibrationXResponse      `xml:"SetRoomCalibrationXResponse,omitempty"`
	GetRoomCalibrationStatus *GetRoomCalibrationStatusResponse `xml:"GetRoomCalibrationStatusResponse,omitempty"`
	SetRoomCalibrationStatus *SetRoomCalibrationStatusResponse `xml:"SetRoomCalibrationStatusResponse,omitempty"`
}

type Envelope

type Envelope struct {
	XMLName       xml.Name `xml:"s:Envelope"`
	Xmlns         string   `xml:"xmlns:s,attr"`
	EncodingStyle string   `xml:"s:encodingStyle,attr"`
	Body          Body     `xml:"s:Body"`
}

type EnvelopeResponse

type EnvelopeResponse struct {
	XMLName       xml.Name     `xml:"Envelope"`
	Xmlns         string       `xml:"xmlns:s,attr"`
	EncodingStyle string       `xml:"encodingStyle,attr"`
	Body          BodyResponse `xml:"Body"`
}

type GetBassArgs

type GetBassArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetBassResponse

type GetBassResponse struct {
	CurrentBass int16 `xml:"CurrentBass"`
}

type GetEQArgs

type GetEQArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	EQType     string `xml:"EQType"`
}

type GetEQResponse

type GetEQResponse struct {
	CurrentValue int16 `xml:"CurrentValue"`
}

type GetHeadphoneConnectedArgs

type GetHeadphoneConnectedArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetHeadphoneConnectedResponse

type GetHeadphoneConnectedResponse struct {
	CurrentHeadphoneConnected bool `xml:"CurrentHeadphoneConnected"`
}

type GetLoudnessArgs

type GetLoudnessArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel string `xml:"Channel"`
}

type GetLoudnessResponse

type GetLoudnessResponse struct {
	CurrentLoudness bool `xml:"CurrentLoudness"`
}

type GetMuteArgs

type GetMuteArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	// Allowed Value: SpeakerOnly
	Channel string `xml:"Channel"`
}

type GetMuteResponse

type GetMuteResponse struct {
	CurrentMute bool `xml:"CurrentMute"`
}

type GetOutputFixedArgs

type GetOutputFixedArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetOutputFixedResponse

type GetOutputFixedResponse struct {
	CurrentFixed bool `xml:"CurrentFixed"`
}

type GetRoomCalibrationStatusArgs

type GetRoomCalibrationStatusArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetRoomCalibrationStatusResponse

type GetRoomCalibrationStatusResponse struct {
	RoomCalibrationEnabled   bool `xml:"RoomCalibrationEnabled"`
	RoomCalibrationAvailable bool `xml:"RoomCalibrationAvailable"`
}

type GetSupportsOutputFixedArgs

type GetSupportsOutputFixedArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetSupportsOutputFixedResponse

type GetSupportsOutputFixedResponse struct {
	CurrentSupportsFixed bool `xml:"CurrentSupportsFixed"`
}

type GetTrebleArgs

type GetTrebleArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type GetTrebleResponse

type GetTrebleResponse struct {
	CurrentTreble int16 `xml:"CurrentTreble"`
}

type GetVolumeArgs

type GetVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel string `xml:"Channel"`
}

type GetVolumeDBArgs

type GetVolumeDBArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel string `xml:"Channel"`
}

type GetVolumeDBRangeArgs

type GetVolumeDBRangeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel string `xml:"Channel"`
}

type GetVolumeDBRangeResponse

type GetVolumeDBRangeResponse struct {
	MinValue int16 `xml:"MinValue"`
	MaxValue int16 `xml:"MaxValue"`
}

type GetVolumeDBResponse

type GetVolumeDBResponse struct {
	CurrentVolume int16 `xml:"CurrentVolume"`
}

type GetVolumeResponse

type GetVolumeResponse struct {
	CurrentVolume uint16 `xml:"CurrentVolume"`
}

type RampToVolumeArgs

type RampToVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel string `xml:"Channel"`
	// Allowed Value: SLEEP_TIMER_RAMP_TYPE
	// Allowed Value: ALARM_RAMP_TYPE
	// Allowed Value: AUTOPLAY_RAMP_TYPE
	RampType string `xml:"RampType"`
	// Allowed Range: 0 -> 100 step: 1
	DesiredVolume    uint16 `xml:"DesiredVolume"`
	ResetVolumeAfter bool   `xml:"ResetVolumeAfter"`
	ProgramURI       string `xml:"ProgramURI"`
}

type RampToVolumeResponse

type RampToVolumeResponse struct {
	RampTime uint32 `xml:"RampTime"`
}

type ResetBasicEQArgs

type ResetBasicEQArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type ResetBasicEQResponse

type ResetBasicEQResponse struct {
	Bass        int16  `xml:"Bass"`
	Treble      int16  `xml:"Treble"`
	Loudness    bool   `xml:"Loudness"`
	LeftVolume  uint16 `xml:"LeftVolume"`
	RightVolume uint16 `xml:"RightVolume"`
}

type ResetExtEQArgs

type ResetExtEQArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	EQType     string `xml:"EQType"`
}

type ResetExtEQResponse

type ResetExtEQResponse struct {
}

type RestoreVolumePriorToRampArgs

type RestoreVolumePriorToRampArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel string `xml:"Channel"`
}

type RestoreVolumePriorToRampResponse

type RestoreVolumePriorToRampResponse struct {
}

type Service

type Service struct {
	ControlEndpoint *url.URL
	EventEndpoint   *url.URL
}

func NewService

func NewService(deviceUrl *url.URL) *Service

func (*Service) GetBass

func (s *Service) GetBass(httpClient *http.Client, args *GetBassArgs) (*GetBassResponse, error)

func (*Service) GetEQ

func (s *Service) GetEQ(httpClient *http.Client, args *GetEQArgs) (*GetEQResponse, error)

func (*Service) GetHeadphoneConnected

func (s *Service) GetHeadphoneConnected(httpClient *http.Client, args *GetHeadphoneConnectedArgs) (*GetHeadphoneConnectedResponse, error)

func (*Service) GetLoudness

func (s *Service) GetLoudness(httpClient *http.Client, args *GetLoudnessArgs) (*GetLoudnessResponse, error)

func (*Service) GetMute

func (s *Service) GetMute(httpClient *http.Client, args *GetMuteArgs) (*GetMuteResponse, error)

func (*Service) GetOutputFixed

func (s *Service) GetOutputFixed(httpClient *http.Client, args *GetOutputFixedArgs) (*GetOutputFixedResponse, error)

func (*Service) GetRoomCalibrationStatus

func (s *Service) GetRoomCalibrationStatus(httpClient *http.Client, args *GetRoomCalibrationStatusArgs) (*GetRoomCalibrationStatusResponse, error)

func (*Service) GetSupportsOutputFixed

func (s *Service) GetSupportsOutputFixed(httpClient *http.Client, args *GetSupportsOutputFixedArgs) (*GetSupportsOutputFixedResponse, error)

func (*Service) GetTreble

func (s *Service) GetTreble(httpClient *http.Client, args *GetTrebleArgs) (*GetTrebleResponse, error)

func (*Service) GetVolume

func (s *Service) GetVolume(httpClient *http.Client, args *GetVolumeArgs) (*GetVolumeResponse, error)

func (*Service) GetVolumeDB

func (s *Service) GetVolumeDB(httpClient *http.Client, args *GetVolumeDBArgs) (*GetVolumeDBResponse, error)

func (*Service) GetVolumeDBRange

func (s *Service) GetVolumeDBRange(httpClient *http.Client, args *GetVolumeDBRangeArgs) (*GetVolumeDBRangeResponse, error)

func (*Service) RampToVolume

func (s *Service) RampToVolume(httpClient *http.Client, args *RampToVolumeArgs) (*RampToVolumeResponse, error)

func (*Service) ResetBasicEQ

func (s *Service) ResetBasicEQ(httpClient *http.Client, args *ResetBasicEQArgs) (*ResetBasicEQResponse, error)

func (*Service) ResetExtEQ

func (s *Service) ResetExtEQ(httpClient *http.Client, args *ResetExtEQArgs) (*ResetExtEQResponse, error)

func (*Service) RestoreVolumePriorToRamp

func (s *Service) RestoreVolumePriorToRamp(httpClient *http.Client, args *RestoreVolumePriorToRampArgs) (*RestoreVolumePriorToRampResponse, error)

func (*Service) SetBass

func (s *Service) SetBass(httpClient *http.Client, args *SetBassArgs) (*SetBassResponse, error)

func (*Service) SetChannelMap

func (s *Service) SetChannelMap(httpClient *http.Client, args *SetChannelMapArgs) (*SetChannelMapResponse, error)

func (*Service) SetEQ

func (s *Service) SetEQ(httpClient *http.Client, args *SetEQArgs) (*SetEQResponse, error)

func (*Service) SetLoudness

func (s *Service) SetLoudness(httpClient *http.Client, args *SetLoudnessArgs) (*SetLoudnessResponse, error)

func (*Service) SetMute

func (s *Service) SetMute(httpClient *http.Client, args *SetMuteArgs) (*SetMuteResponse, error)

func (*Service) SetOutputFixed

func (s *Service) SetOutputFixed(httpClient *http.Client, args *SetOutputFixedArgs) (*SetOutputFixedResponse, error)

func (*Service) SetRelativeVolume

func (s *Service) SetRelativeVolume(httpClient *http.Client, args *SetRelativeVolumeArgs) (*SetRelativeVolumeResponse, error)

func (*Service) SetRoomCalibrationStatus

func (s *Service) SetRoomCalibrationStatus(httpClient *http.Client, args *SetRoomCalibrationStatusArgs) (*SetRoomCalibrationStatusResponse, error)

func (*Service) SetRoomCalibrationX

func (s *Service) SetRoomCalibrationX(httpClient *http.Client, args *SetRoomCalibrationXArgs) (*SetRoomCalibrationXResponse, error)

func (*Service) SetTreble

func (s *Service) SetTreble(httpClient *http.Client, args *SetTrebleArgs) (*SetTrebleResponse, error)

func (*Service) SetVolume

func (s *Service) SetVolume(httpClient *http.Client, args *SetVolumeArgs) (*SetVolumeResponse, error)

func (*Service) SetVolumeDB

func (s *Service) SetVolumeDB(httpClient *http.Client, args *SetVolumeDBArgs) (*SetVolumeDBResponse, error)

type SetBassArgs

type SetBassArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Range: -10 -> 10 step: 1
	DesiredBass int16 `xml:"DesiredBass"`
}

type SetBassResponse

type SetBassResponse struct {
}

type SetChannelMapArgs

type SetChannelMapArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	ChannelMap string `xml:"ChannelMap"`
}

type SetChannelMapResponse

type SetChannelMapResponse struct {
}

type SetEQArgs

type SetEQArgs struct {
	Xmlns        string `xml:"xmlns:u,attr"`
	InstanceID   uint32 `xml:"InstanceID"`
	EQType       string `xml:"EQType"`
	DesiredValue int16  `xml:"DesiredValue"`
}

type SetEQResponse

type SetEQResponse struct {
}

type SetLoudnessArgs

type SetLoudnessArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel         string `xml:"Channel"`
	DesiredLoudness bool   `xml:"DesiredLoudness"`
}

type SetLoudnessResponse

type SetLoudnessResponse struct {
}

type SetMuteArgs

type SetMuteArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	// Allowed Value: SpeakerOnly
	Channel     string `xml:"Channel"`
	DesiredMute bool   `xml:"DesiredMute"`
}

type SetMuteResponse

type SetMuteResponse struct {
}

type SetOutputFixedArgs

type SetOutputFixedArgs struct {
	Xmlns        string `xml:"xmlns:u,attr"`
	InstanceID   uint32 `xml:"InstanceID"`
	DesiredFixed bool   `xml:"DesiredFixed"`
}

type SetOutputFixedResponse

type SetOutputFixedResponse struct {
}

type SetRelativeVolumeArgs

type SetRelativeVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel    string `xml:"Channel"`
	Adjustment int32  `xml:"Adjustment"`
}

type SetRelativeVolumeResponse

type SetRelativeVolumeResponse struct {
	NewVolume uint16 `xml:"NewVolume"`
}

type SetRoomCalibrationStatusArgs

type SetRoomCalibrationStatusArgs struct {
	Xmlns                  string `xml:"xmlns:u,attr"`
	InstanceID             uint32 `xml:"InstanceID"`
	RoomCalibrationEnabled bool   `xml:"RoomCalibrationEnabled"`
}

type SetRoomCalibrationStatusResponse

type SetRoomCalibrationStatusResponse struct {
}

type SetRoomCalibrationXArgs

type SetRoomCalibrationXArgs struct {
	Xmlns           string `xml:"xmlns:u,attr"`
	InstanceID      uint32 `xml:"InstanceID"`
	CalibrationID   string `xml:"CalibrationID"`
	Coefficients    string `xml:"Coefficients"`
	CalibrationMode string `xml:"CalibrationMode"`
}

type SetRoomCalibrationXResponse

type SetRoomCalibrationXResponse struct {
}

type SetTrebleArgs

type SetTrebleArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Range: -10 -> 10 step: 1
	DesiredTreble int16 `xml:"DesiredTreble"`
}

type SetTrebleResponse

type SetTrebleResponse struct {
}

type SetVolumeArgs

type SetVolumeArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel string `xml:"Channel"`
	// Allowed Range: 0 -> 100 step: 1
	DesiredVolume uint16 `xml:"DesiredVolume"`
}

type SetVolumeDBArgs

type SetVolumeDBArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	// Allowed Value: Master
	// Allowed Value: LF
	// Allowed Value: RF
	Channel       string `xml:"Channel"`
	DesiredVolume int16  `xml:"DesiredVolume"`
}

type SetVolumeDBResponse

type SetVolumeDBResponse struct {
}

type SetVolumeResponse

type SetVolumeResponse struct {
}

Jump to

Keyboard shortcuts

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