18#ifndef _OHVOLUME_HXX_INCLUDED_
19#define _OHVOLUME_HXX_INCLUDED_
21#include <unordered_map>
35typedef std::shared_ptr<OHVolume> OHVLH;
63 using Service::Service;
66 static bool isOHVLService(
const std::string& st);
67 bool serviceTypeMatch(
const std::string& tp)
override;
74 int volume(
int *value);
79 int setVolume(
int value);
80 int volumeLimit(
int *value);
81 int mute(
bool *value);
82 int setMute(
bool value);
86 static const std::string SType;
89 void UPNPP_LOCAL evtCallback(
90 const std::unordered_map<std::string, std::string>&);
91 void UPNPP_LOCAL registerCallback()
override;
92 int UPNPP_LOCAL devVolTo0100(
int);
93 int UPNPP_LOCAL vol0100ToDev(
int vol);
94 int UPNPP_LOCAL maybeInitVolmax();
OHVolume Service client class.
Definition ohvolume.hxx:61
Definition service.hxx:88
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition avlastchg.cxx:28
Definition ohvolume.hxx:37
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:42
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
int balanceMax
BalanceMax defines the maximum Balance setting.
Definition ohvolume.hxx:51
int volumeMilliDbPerStep
VolumeMilliDbPerStep defines the size of each volume step in binary milli decibels (mibi dB).
Definition ohvolume.hxx:48