wip: dynamically updated endpoint name

This commit is contained in:
Hane 2024-04-19 18:58:26 +02:00
commit 1b2ab191ca
5 changed files with 55 additions and 29 deletions

View file

@ -18,6 +18,7 @@ struct BackEndpointVolumeCallbackInfo {
float mainVolume;
size_t channels;
std::vector<float> channelVolumes;
bool updateName = false;
};
class EndpointHandler {
@ -30,7 +31,7 @@ public:
//EndpointVolumeCallback* getEndpointVolumeCallback();
//Endpoint* getEndpoint();
//std::wstring epName;
//todo: name refactor
BackEndpointVolumeCallbackInfo* getCallbackInfo();
uint32_t getChannelCount();
@ -103,6 +104,7 @@ public:
void setChangeFrontDefaultsFunction(std::function<void(Roles, std::wstring)> changeFrontDefaults);
void changeFrontDefaultsCallback(Roles role, std::wstring endpointId);
void updateFrontEndpointName(Endpoint* ep);
//void setReviseEndpointShowingFunction(std::function<void(std::wstring, EndpointState)> reviseEndpointShowing);
void reviseEndpointShowing(std::wstring endpointId, EndpointState state);
void setRemoveEndpointWidgetFunction(std::function<void(uint64_t)> removeEndpointWidget);