first callback implemented; overload not working
This commit is contained in:
parent
a565190e6f
commit
167331944c
6 changed files with 92 additions and 29 deletions
|
|
@ -32,10 +32,10 @@ void EndpointHandler::setValue(int channel, int value){
|
|||
else ep->setVolume(channel, (float)value / 100);
|
||||
}
|
||||
|
||||
void EndpointHandler::setMute(NGuid* guid){
|
||||
void EndpointHandler::setMute(NGuid* guid, bool muted){
|
||||
//Qt momento, de ahi el param?
|
||||
log_debugcpp("kinda handling the muting tbh");
|
||||
ep->setMute(guid);
|
||||
ep->setMute(guid, muted);
|
||||
}
|
||||
|
||||
std::wstring EndpointHandler::getName(){
|
||||
|
|
@ -105,9 +105,12 @@ void OverseerHandler::setEndpointHandlers(std::vector<EndpointHandler*> ephs){
|
|||
this->endpointHandlers = ephs;
|
||||
}
|
||||
|
||||
/*
|
||||
* void OverseerHandler::setEndpointWidgets(std::vector<EndpointWidget*> ews){
|
||||
* this->endpointWidgets = ews;
|
||||
* }
|
||||
*/
|
||||
|
||||
void OverseerHandler::setEndpointWidgets(std::vector<EndpointWidget*> ews){
|
||||
this->endpointWidgets = ews;
|
||||
}
|
||||
|
||||
void OverseerHandler::updateMuteCallback(uint64_t idx, bool muted){
|
||||
epwMuteFunc f = &EndpointWidget::updateMuteC;
|
||||
std::invoke(f, endpointWidgets.at(idx), muted);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue