18 #ifndef _OHVOLUME_HXX_INCLUDED_ 19 #define _OHVOLUME_HXX_INCLUDED_ 21 #include <unordered_map> 26 #include "service.hxx" 33 class UPnPServiceDesc;
35 typedef std::shared_ptr<OHVolume> OHVLH;
72 static bool isOHVLService(
const std::string& st);
73 virtual bool serviceTypeMatch(
const std::string& tp);
80 int volume(
int *value);
85 int setVolume(
int value);
86 int volumeLimit(
int *value);
87 int mute(
bool *value);
88 int setMute(
bool value);
92 static const std::string SType;
95 void UPNPP_LOCAL evtCallback(
96 const std::unordered_map<std::string, std::string>&);
97 void UPNPP_LOCAL registerCallback();
98 int UPNPP_LOCAL devVolTo0100(
int);
99 int UPNPP_LOCAL vol0100ToDev(
int vol);
100 int UPNPP_LOCAL maybeInitVolmax();
int volumeMax
VolumeMax defines the absolute maximum Volume setting.
Definition: ohvolume.hxx:39
int volumeUnity
VolumeUnity defines the value of Volume that will result in unity system gain (i.e.
Definition: ohvolume.hxx:39
OHVolume Service client class.
Definition: ohvolume.hxx:61
Definition: service.hxx:82
int volumeMilliDbPerStep
VolumeMilliDbPerStep defines the size of each volume step in binary milli decibels (mibi dB)...
Definition: ohvolume.hxx:48
int volumeSteps
VolumeSteps defines the number of step increments required to increase the Volume from zero to Volume...
Definition: ohvolume.hxx:45
int fadeMax
FadeMax defines the maximum Fade setting.
Definition: ohvolume.hxx:54
Definition: ohvolume.hxx:37
Data holder for a UPnP service, parsed from the device XML description.
Definition: description.hxx:46
Data holder for a UPnP device, parsed from the XML description obtained during discovery.
Definition: description.hxx:142
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition: avlastchg.cxx:27
int balanceMax
BalanceMax defines the maximum Balance setting.
Definition: ohvolume.hxx:51