wip: default callback
This commit is contained in:
parent
512a42f954
commit
7f05cc09f6
7 changed files with 230 additions and 15 deletions
|
|
@ -18,6 +18,7 @@ enum EndpointState {
|
|||
ENDPOINT_DISABLED = (1 << 1),
|
||||
ENDPOINT_NOTPRESENT = (1 << 2),
|
||||
ENDPOINT_UNPLUGGED = (1 << 3),
|
||||
ENDPOINT_ALL = 0x0F
|
||||
};
|
||||
|
||||
enum Flows {
|
||||
|
|
@ -78,6 +79,7 @@ public:
|
|||
bool getMute();
|
||||
uint8_t getState();
|
||||
uint8_t getRoles();
|
||||
void setRoles(Roles newRole);
|
||||
|
||||
void setVolume(NGuid guid, int channel, int value);
|
||||
void setMute(NGuid guid, bool muted);
|
||||
|
|
@ -95,6 +97,7 @@ class OverseerHandler {
|
|||
|
||||
public:
|
||||
OverseerHandler();
|
||||
void setChangeFrontDefaultsFunction(std::function<void(Roles, wchar* endpointId)> changeFrontDefaults);
|
||||
void setEndpointHandlers(std::vector<EndpointHandler*> ephs);
|
||||
std::vector<EndpointHandler*> getEndpointHandlers();
|
||||
std::vector<Endpoint*> getPlaybackEndpoints();
|
||||
|
|
@ -105,7 +108,7 @@ public:
|
|||
private:
|
||||
Overseer *os;
|
||||
std::vector<EndpointHandler*> endpointHandlers;
|
||||
|
||||
std::function<void(Roles, wchar* endpointId)> changeFrontDefaults;
|
||||
//std::function<void(uint64_t /* device */, uint32_t /* channel */, float /* value */)> updateFrontVolumeCallback;
|
||||
//std::function<void(uint64_t /* device */, bool /* mute */)> updateFrontMuteCallback;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue