|
a/src/ohvolume.cxx |
|
b/src/ohvolume.cxx |
|
... |
|
... |
115 |
|
115 |
|
116 |
int OHVolume::setVolume(const SoapIncoming& sc, SoapOutgoing& data)
|
116 |
int OHVolume::setVolume(const SoapIncoming& sc, SoapOutgoing& data)
|
117 |
{
|
117 |
{
|
118 |
LOGDEB("OHVolume::setVolume" << endl);
|
118 |
LOGDEB("OHVolume::setVolume" << endl);
|
119 |
int volume;
|
119 |
int volume;
|
120 |
if (!sc.getInt("Value", &volume)) {
|
120 |
if (!sc.get("Value", &volume)) {
|
121 |
return UPNP_E_INVALID_PARAM;
|
121 |
return UPNP_E_INVALID_PARAM;
|
122 |
}
|
122 |
}
|
123 |
m_ctl->setvolume_i(volume);
|
123 |
m_ctl->setvolume_i(volume);
|
124 |
m_dev->loopWakeup();
|
124 |
m_dev->loopWakeup();
|
125 |
return UPNP_E_SUCCESS;
|
125 |
return UPNP_E_SUCCESS;
|
|
... |
|
... |
127 |
|
127 |
|
128 |
int OHVolume::setMute(const SoapIncoming& sc, SoapOutgoing& data)
|
128 |
int OHVolume::setMute(const SoapIncoming& sc, SoapOutgoing& data)
|
129 |
{
|
129 |
{
|
130 |
LOGDEB("OHVolume::setMute" << endl);
|
130 |
LOGDEB("OHVolume::setMute" << endl);
|
131 |
bool mute;
|
131 |
bool mute;
|
132 |
if (!sc.getBool("Value", &mute)) {
|
132 |
if (!sc.get("Value", &mute)) {
|
133 |
return UPNP_E_INVALID_PARAM;
|
133 |
return UPNP_E_INVALID_PARAM;
|
134 |
}
|
134 |
}
|
135 |
m_ctl->setmute_i(mute);
|
135 |
m_ctl->setmute_i(mute);
|
136 |
return UPNP_E_SUCCESS;
|
136 |
return UPNP_E_SUCCESS;
|
137 |
}
|
137 |
}
|