|
a/src/renderctl.cxx |
|
b/src/renderctl.cxx |
|
... |
|
... |
43 |
sTpRender("urn:schemas-upnp-org:service:RenderingControl:1");
|
43 |
sTpRender("urn:schemas-upnp-org:service:RenderingControl:1");
|
44 |
static const string sIdRender("urn:upnp-org:serviceId:RenderingControl");
|
44 |
static const string sIdRender("urn:upnp-org:serviceId:RenderingControl");
|
45 |
|
45 |
|
46 |
static const int minVolumeDelta = 5;
|
46 |
static const int minVolumeDelta = 5;
|
47 |
|
47 |
|
48 |
UpMpdRenderCtl::UpMpdRenderCtl(UpMpd *dev)
|
48 |
UpMpdRenderCtl::UpMpdRenderCtl(UpMpd *dev, bool noev)
|
49 |
: UpnpService(sTpRender, sIdRender, dev), m_dev(dev), m_desiredvolume(-1)
|
49 |
: UpnpService(sTpRender, sIdRender, dev, noev), m_dev(dev),
|
|
|
50 |
m_desiredvolume(-1)
|
50 |
{
|
51 |
{
|
51 |
m_dev->addActionMapping(this, "SetMute",
|
52 |
m_dev->addActionMapping(this, "SetMute",
|
52 |
bind(&UpMpdRenderCtl::setMute, this, _1, _2));
|
53 |
bind(&UpMpdRenderCtl::setMute, this, _1, _2));
|
53 |
m_dev->addActionMapping(this, "GetMute",
|
54 |
m_dev->addActionMapping(this, "GetMute",
|
54 |
bind(&UpMpdRenderCtl::getMute, this, _1, _2));
|
55 |
bind(&UpMpdRenderCtl::getMute, this, _1, _2));
|