guid sent and validated for mute
This commit is contained in:
parent
44461afdc4
commit
c8d64481e8
7 changed files with 72 additions and 65 deletions
|
|
@ -8,7 +8,7 @@ EndpointHandler::EndpointHandler(uint64_t idx) {
|
|||
this->ep = endpoints.at(idx);
|
||||
epc = new EndpointCallback(ep);
|
||||
//epName = ep->getName();
|
||||
//ep->setCallback(*epc);
|
||||
ep->setCallback(epc);
|
||||
}
|
||||
|
||||
void EndpointHandler::setIndex(uint64_t idx){
|
||||
|
|
@ -29,10 +29,10 @@ void EndpointHandler::setValue(int channel, int value){
|
|||
else ep->setVolume(channel, (float)value / 100);
|
||||
}
|
||||
|
||||
void EndpointHandler::setMute(){
|
||||
void EndpointHandler::setMute(NGuid* guid){
|
||||
//Qt momento, de ahi el param?
|
||||
log_debugcpp("kinda handling the muting tbh");
|
||||
ep->setMute();
|
||||
ep->setMute(guid);
|
||||
}
|
||||
|
||||
std::wstring EndpointHandler::getName(){
|
||||
|
|
@ -94,24 +94,10 @@ void OverseerHandler::reloadEndpointHandlers(){
|
|||
//setEndpointHandlers(ephs);
|
||||
}
|
||||
|
||||
/*
|
||||
* void OverseerHandler::parseExternalEndpointCallback(EndpointCallback *fEpc, PAUDIO_VOLUME_NOTIFICATION_DATA pNotify){
|
||||
* log_debugcpp("parsing in da ovasiar");
|
||||
* for (uint64_t i = 0; i < endpointHandlers.size(); i++){
|
||||
* if(endpointHandlers.at(i)->eph->epc == fEpc) {
|
||||
* endpointHandlers.at(i)->muteButton->setText(endpointHandlers.at(i)->eph->getMute() ? STRING_UNMUTE : STRING_MUTE);
|
||||
* break;
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
|
||||
/*
|
||||
* connect(mainSlider, &QSlider::valueChanged, [this](int newValue){this->eph->setValue(ENDPOINT_MASTER_VOLUME, newValue); });
|
||||
* connect(leftChannelSlider, &QSlider::valueChanged, [this](int newValue){ this->eph->setValue(ENDPOINT_LEFT_CHANNEL_VOLUME, newValue); this->leftChannelLabel->setText(QString::number(newValue)); });
|
||||
* connect(rightChannelSlider, &QSlider::valueChanged, [this](int newValue){ this->eph->setValue(ENDPOINT_RIGHT_CHANNEL_VOLUME, newValue); this->rightChannelLabel->setText(QString::number(newValue)); });
|
||||
* connect(muteButton, &QPushButton::clicked, [this](bool clicked){ log_debugcpp("cliqui" << clicked << "cloqui"); this->eph->setMute(); this->muteButton->setText(this->eph->getMute() ? STRING_UNMUTE : STRING_MUTE); });
|
||||
* log_debugcpp("ENDPOINT_WIDGETED");
|
||||
*/
|
||||
|
||||
NGuid* OverseerHandler::getGuid() {
|
||||
return os.getGuid();
|
||||
}
|
||||
|
||||
|
||||
void OverseerHandler::setEndpointHandlers(std::vector<EndpointHandler*> ews){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue