9.2
7 RenderingControl
| (require racket-upnp/services/rendering-control) | |
| package: base | |
RenderingControl manages rendering properties such as volume and mute.
procedure
(device-rendering-control device) → (or/c #f upnp-service?)
device : upnp-device?
Returns the device’s RenderingControl service.
Recognises a RenderingControl service.
procedure
(rendering-control-volume control [ #:channel channel #:instance-id instance-id]) → (or/c #f exact-integer?) control : rendering-control? channel : string? = "Master" instance-id : exact-nonnegative-integer? = 0
Returns the device-specific UPnP volume value.
procedure
(rendering-control-set-volume! control volume [ #:channel channel #:instance-id instance-id]) → void? control : rendering-control? volume : (integer-in 0 65535) channel : string? = "Master" instance-id : exact-nonnegative-integer? = 0
Sets the device-specific UPnP volume value. The device’s SCPD determines the actual supported maximum.
procedure
(rendering-control-muted? control [ #:channel channel #:instance-id instance-id]) → boolean? control : rendering-control? channel : string? = "Master" instance-id : exact-nonnegative-integer? = 0
Returns the mute state.
procedure
(rendering-control-set-muted! control muted? [ #:channel channel #:instance-id instance-id]) → void? control : rendering-control? muted? : boolean? channel : string? = "Master" instance-id : exact-nonnegative-integer? = 0
Sets the mute state.