Documentation
¶
Index ¶
- type Client
- type Device
- func (d *Device) ClearQueue(ctx context.Context) error
- func (d *Device) Join(ctx context.Context, master *Device) error
- func (d *Device) LoadSonosPlaylist(ctx context.Context, playlistName string) error
- func (d *Device) Play(ctx context.Context) error
- func (d *Device) RampVolume(ctx context.Context, volume int) (time.Duration, error)
- func (d *Device) SetPlayMode(ctx context.Context, mode PlayMode) error
- func (d *Device) SetSleepTimer(ctx context.Context, duration time.Duration) error
- func (d *Device) SetVolume(ctx context.Context, volume int) error
- func (d *Device) Stop(ctx context.Context) error
- func (d *Device) Ungroup(ctx context.Context) error
- type PlayMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NumDevices ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) LoadSonosPlaylist ¶
func (*Device) RampVolume ¶
RampVolume smoothly adjusts the device's volume to the target. It returns how long the ramp is expected to take.
func (*Device) SetSleepTimer ¶
Click to show internal directories.
Click to hide internal directories.