wip: heap corruption (3rd item main volume)
This commit is contained in:
parent
50789d8176
commit
780b546385
6 changed files with 107 additions and 52 deletions
|
|
@ -62,6 +62,8 @@ class EndpointHandler {
|
|||
|
||||
public:
|
||||
EndpointHandler(uint64_t idx);
|
||||
void setBackEndpointVolumeCallbackInfoContent(uint8_t state);
|
||||
|
||||
//these two, currently unused. If I use them, I should feel bad.
|
||||
//EndpointVolumeCallback* getEndpointVolumeCallback();
|
||||
//Endpoint* getEndpoint();
|
||||
|
|
@ -92,12 +94,14 @@ public:
|
|||
void setVolume(NGuid guid, int channel, int value);
|
||||
void setMute(NGuid guid, bool muted);
|
||||
void setState(uint8_t state);
|
||||
void setState(uint8_t state, uint64_t idx);
|
||||
|
||||
~EndpointHandler();
|
||||
private:
|
||||
uint64_t idx;
|
||||
Endpoint *ep = nullptr;
|
||||
EndpointVolumeCallback *epc = nullptr;
|
||||
|
||||
BackEndpointVolumeCallbackInfo callbackInfo;
|
||||
struct EndpointHandlerFrontVisibility {
|
||||
EndpointState visibility = EndpointState::ENDPOINT_ALL;
|
||||
|
|
@ -107,7 +111,6 @@ private:
|
|||
//QSlider *slidy;
|
||||
};
|
||||
|
||||
|
||||
class OverseerHandler {
|
||||
|
||||
public:
|
||||
|
|
@ -118,6 +121,8 @@ public:
|
|||
//void setReviseEndpointShowingFunction(std::function<void(std::wstring, EndpointState)> reviseEndpointShowing);
|
||||
void reviseEndpointShowing(std::wstring endpointId, EndpointState state);
|
||||
void setRemoveEndpointWidgetFunction(std::function<void(uint64_t)> removeEndpointWidget);
|
||||
void setAddEndpointWidgetFunction(std::function<void(EndpointHandler*)> addEndpointWidget);
|
||||
|
||||
void setEndpointHandlers(std::vector<EndpointHandler*> ephs);
|
||||
std::vector<EndpointHandler*> getEndpointHandlers();
|
||||
std::vector<Endpoint*> getPlaybackEndpoints();
|
||||
|
|
@ -130,6 +135,7 @@ private:
|
|||
std::vector<EndpointHandler*> endpointHandlers;
|
||||
std::function<void(Roles, std::wstring /* endpointid */)> changeFrontDefaults;
|
||||
std::function<void(uint64_t /* epw id */)> removeEndpointWidget;
|
||||
std::function<void(EndpointHandler*)> addEndpointWidget;
|
||||
|
||||
//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