code cleanup; channels callback coalesced again

This commit is contained in:
Hane 2023-08-15 17:03:23 +02:00
commit 831dceb89a
6 changed files with 58 additions and 55 deletions

View file

@ -71,7 +71,7 @@ public:
void updateMainVolume(float newValue);
void updateChannelVolume(uint32_t channel, float newValue);
void updateMute(bool muted);
void toggleFrontEvents(bool active);
//void toggleFrontEvents(bool active);
//void populateEndpointWidget(EndpointHandler *eph);
//void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
@ -84,18 +84,12 @@ private:
uint64_t idx;
//std::vector<EndpointHandler*> *ephs;
//std::vector<QSlider> *sliders;
//signals:
//void valueChanged(int value);
};
typedef void (EndpointWidget::*epwMuteFunc)(bool muted);
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;