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

@ -294,6 +294,13 @@ void OverseerHandler::changeFrontDefaultsCallback(Roles role, std::wstring endpo
this->changeFrontDefaults(role, endpointId);
}
void OverseerHandler::updateFrontEndpointName(Endpoint* ep) {
//todo: reintroduce capture devices
for (auto eph : playbackEndpointHandlers) {
if (eph->getEndpoint() == ep) eph->getCallbackInfo()->updateName = true;
}
}
void OverseerHandler::reviseEndpointShowing(std::wstring endpointId, EndpointState state) {
std::vector<EndpointHandler*> allHandlers;
allHandlers.insert(allHandlers.end(), this->captureEndpointHandlers.begin(), this->captureEndpointHandlers.end());