wip channel callback

This commit is contained in:
Hane 2023-08-13 18:29:24 +02:00
commit b4401dd984
6 changed files with 28 additions and 47 deletions

View file

@ -66,16 +66,15 @@ public:
QSlider *mainSlider = nullptr;
std::vector<QSlider*> channelSliders;
std::vector<QLabel*> channelLabels;
/*
* QSlider *leftChannelSlider = nullptr;
* QSlider *rightChannelSlider = nullptr;
*/
QGridLayout *layout = nullptr;
QGridLayout *mainMuteLayout = nullptr;
void updateMainVolume(float newValue);
void updateChannelVolume(uint32_t channel, float newValue);
void updateMute(bool muted);
//void populateEndpointWidget(EndpointHandler *eph);
//void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
public slots:
void updateMainVolume(int newValue);
void updateMute(int checked);
@ -93,6 +92,7 @@ private:
typedef void (EndpointWidget::*epwMuteFunc)(bool muted);
typedef void (EndpointWidget::*epwMainVolumeFunc)(float newValue);
typedef void (EndpointWidget::*epwChannelVolumeFunc)(uint32_t channel, float newValue);
class MainWindow : public QMainWindow {
Q_OBJECT