various fixes
This commit is contained in:
parent
5638f2e1f3
commit
512a42f954
9 changed files with 163 additions and 137 deletions
|
|
@ -30,7 +30,7 @@ enum Roles {
|
|||
ROLE_CONSOLE = (1 << 0),
|
||||
ROLE_MULTIMEDIA = (1 << 1),
|
||||
ROLE_COMMUNICATIONS = (1 << 2),
|
||||
ROLE_ALL = (7 << 0),
|
||||
ROLE_ALL = 0x07,
|
||||
};
|
||||
|
||||
struct NGuid {
|
||||
|
|
@ -79,8 +79,8 @@ public:
|
|||
uint8_t getState();
|
||||
uint8_t getRoles();
|
||||
|
||||
void setVolume(NGuid* guid, int channel, int value);
|
||||
void setMute(NGuid* guid, bool muted);
|
||||
void setVolume(NGuid guid, int channel, int value);
|
||||
void setMute(NGuid guid, bool muted);
|
||||
void setState(uint8_t state);
|
||||
|
||||
~EndpointHandler();
|
||||
|
|
@ -94,16 +94,16 @@ private:
|
|||
class OverseerHandler {
|
||||
|
||||
public:
|
||||
//OverseerHandler();
|
||||
OverseerHandler();
|
||||
void setEndpointHandlers(std::vector<EndpointHandler*> ephs);
|
||||
std::vector<EndpointHandler*> getEndpointHandlers();
|
||||
std::vector<Endpoint*> getPlaybackEndpoints();
|
||||
uint64_t getPlaybackEndpointsCount();
|
||||
void reloadEndpointHandlers();
|
||||
NGuid* getGuid();
|
||||
NGuid getGuid();
|
||||
|
||||
private:
|
||||
static Overseer os;
|
||||
Overseer *os;
|
||||
std::vector<EndpointHandler*> endpointHandlers;
|
||||
|
||||
//std::function<void(uint64_t /* device */, uint32_t /* channel */, float /* value */)> updateFrontVolumeCallback;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue