Compare commits

...

2 commits

Author SHA1 Message Date
01d2611d65 added pdb generation, fixed unintended back call 2023-08-14 18:00:59 +02:00
4f900ad425 broken: fixed event toggling order 2023-08-14 16:24:07 +02:00
5 changed files with 7 additions and 8 deletions

View file

@ -1,6 +1,6 @@
QMAKE_CXXFLAGS += --target=x86_64-w64-mingw32
QMAKE_LINKER += clang++
QMAKE_LFLAGS += -v
QMAKE_CXXFLAGS += --target=x86_64-w64-mingw32 -g -gcodeview
#QMAKE_LINK += clang++
QMAKE_LFLAGS += --target=x86_64-w64-mingw32 -g -gcodeview -Wl,-pdb= -v
DEFINES += DEBUG
CONFIG += debug console
QT += widgets

View file

@ -55,7 +55,7 @@ HRESULT EndpointCallback::OnNotify(PAUDIO_VOLUME_NOTIFICATION_DATA pNotify) {
} else {
log_debugcpp("Onnanokotify says Stored: " << guid->data1);
log_debugcpp("Onnanokotify says Grace of God: " << eventData.guidEventContext.Data1);
osh->toggleFrontEvents(this->ep->getIndex(), false);
osh->toggleFrontEvents(this->ep->getIndex(), true);
osh->updateMuteCallback(this->ep->getIndex(), eventData.bMuted);
osh->updateMainVolumeCallback(this->ep->getIndex(), eventData.fMasterVolume);
log_debugcpp("Onnanokotify says Reported Channel Qty: " << eventData.nChannels);
@ -66,7 +66,7 @@ HRESULT EndpointCallback::OnNotify(PAUDIO_VOLUME_NOTIFICATION_DATA pNotify) {
}
else
osh->updateChannelVolumeCallback(this->ep->getIndex(), (uint32_t)0, pNotify->afChannelVolumes[0]);
osh->toggleFrontEvents(this->ep->getIndex(), true);
osh->toggleFrontEvents(this->ep->getIndex(), false);
}
return S_OK;

View file

@ -127,7 +127,7 @@ void OverseerHandler::updateMainVolumeCallback(uint64_t idx, float newVal){
void OverseerHandler::updateChannelVolumeCallback(uint64_t idx, uint32_t channel, float newVal){
//int translatedNewVal = newVal * 100;
log_debugcpp("chanel: " << channel << " volcallback float: " << newVal);
epwChannelVolumeFunc f = &EndpointWidget::updateChannelVolume;
std::invoke(f, endpointWidgets.at(idx), channel, newVal);

View file

@ -75,7 +75,7 @@ void EndpointWidget::updateMute(bool muted){
log_debugcpp("cliqui callboqui cloqui");
//TODO: Here to diagnose slider visuals locking when playing DJ with external volume bar. Functionality is restored when mute checkbox is clicked.
//this->muteButton->blockSignals(true);
this->eph->setMute(osh->getGuid(), muted);
//this->eph->setMute(osh->getGuid(), muted);
this->muteButton->setChecked(eph->getMute() ? true : false);
this->muteButton->setText(this->eph->getMute() ? STRING_UNMUTE : STRING_MUTE);
//this->muteButton->blockSignals(false);

View file

@ -96,7 +96,6 @@ typedef void (EndpointWidget::*epwMainVolumeFunc)(float newValue);
typedef void (EndpointWidget::*epwChannelVolumeFunc)(uint32_t channel, float newValue);
typedef void (EndpointWidget::*epwToggleFrontFunc)(bool active);
class MainWindow : public QMainWindow {
Q_OBJECT
//QWidget *centralWidget;