code cleanup; channels callback coalesced again
This commit is contained in:
parent
c4b1c4b796
commit
831dceb89a
6 changed files with 58 additions and 55 deletions
|
|
@ -64,7 +64,6 @@ class OverseerHandler {
|
|||
public:
|
||||
//OverseerHandler();
|
||||
void setEndpointHandlers(std::vector<EndpointHandler*> ephs);
|
||||
void setEndpointWidgets(std::vector<EndpointWidget*> ews);
|
||||
std::vector<EndpointHandler*> getEndpointHandlers();
|
||||
std::vector<Endpoint*> getPlaybackEndpoints();
|
||||
uint64_t getPlaybackEndpointsCount();
|
||||
|
|
@ -73,13 +72,13 @@ public:
|
|||
void updateMuteCallback(uint64_t idx, bool muted);
|
||||
void setFrontMuteCallback(std::function<void(uint64_t, bool)> f);
|
||||
void setFrontVolumeCallback(std::function<void(uint64_t, uint32_t, float)> f);
|
||||
void updateMainVolumeCallback(uint64_t idx, float newVal);
|
||||
void updateChannelVolumeCallback(uint64_t idx, uint32_t channel, float newVal);
|
||||
//void updateMainVolumeCallback(uint64_t idx, float newVal);
|
||||
void updateVolumeCallback(uint64_t idx, uint32_t channel, float newVal);
|
||||
|
||||
private:
|
||||
static Overseer os;
|
||||
std::vector<EndpointHandler*> endpointHandlers;
|
||||
std::vector<EndpointWidget*> endpointWidgets;
|
||||
std::function<void(uint64_t /* device */, uint32_t /* channel */, float /* value */)> updateFrontVolumeCallback = {};
|
||||
std::function<void(uint64_t /* device */, bool /* mute */)> updateFrontMuteCallback = {};
|
||||
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