Open ushis opened 3 years ago
Hi. I'd like work with Module Objects.
Unfortunately your lib does not implement func (cl *Client) Module() like func (cl *Client) Device() or func (cl *Client) Stream(). I would love to find a solution and have 3 proposals:
func (cl *Client) Module()
func (cl *Client) Device()
func (cl *Client) Stream()
func (pulse *Client) Module(sink dbus.ObjectPath) *Object { return NewObject(pulse.conn, DbusInterface+".Module", sink) }
Client.conn
NewObject
func NewObject(client *Client, interf string, path dbus.ObjectPath) *Object
Do you have any preference? I would be happy to open a PR.
Hi. I'd like work with Module Objects.
Unfortunately your lib does not implement
func (cl *Client) Module()
likefunc (cl *Client) Device()
orfunc (cl *Client) Stream()
. I would love to find a solution and have 3 proposals:func (cl *Client) Module()
. It's as easy as:Client.conn
to the user. That way people can useNewObject
using the existing dbus connection of the pulse client.NewObject
toDo you have any preference? I would be happy to open a PR.