-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget.h
64 lines (45 loc) · 1.3 KB
/
widget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QDebug>
#include <QtTest/QTest>
#include <Windows.h>
#include <mmdeviceapi.h>
#include <devicetopology.h>
#include <Ksmedia.h>
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
private slots:
void on_hSlider_Front_valueChanged(int value);
void on_hSlider_Rear_valueChanged(int value);
void on_hSlider_Sub_valueChanged(int value);
void on_hSlider_Center_valueChanged(int value);
void on_hSlider_Side_valueChanged(int value);
private:
Ui::Widget *ui;
HRESULT _hr;
IMMDeviceEnumerator *_pDeviceEnumerator;
IMMDevice *_pDefaultDevice;
IDeviceTopology *_pDeviceTopology;
IConnector *_pConnectorFrom;
IConnector *_pConnectorTo;
IPart *_pPart;
IAudioVolumeLevel *_pAudioVolumeLevelFront;
IAudioVolumeLevel *_pAudioVolumeLevelRear;
IAudioVolumeLevel *_pAudioVolumeLevelSubwoofer;
IAudioVolumeLevel *_pAudioVolumeLevelCenter;
IAudioVolumeLevel *_pAudioVolumeLevelSide;
float dbToPercent(float value);
float percentToDb(float value);
bool _isAppLoading;
protected:
void showEvent(QShowEvent *);
};
#endif // WIDGET_H