You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
317 B
Go
12 lines
317 B
Go
package pulseaudio
|
|
|
|
// Updates returns a channel with PulseAudio updates.
|
|
func (c *Client) Updates() (updates <-chan struct{}, err error) {
|
|
const subscriptionMaskAll = 0x02ff
|
|
_, err = c.request(commandSubscribe, uint32Tag, uint32(subscriptionMaskAll))
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return c.updates, nil
|
|
}
|