-
Notifications
You must be signed in to change notification settings - Fork 1
/
audiotrapmainwindow.h
43 lines (35 loc) · 1.1 KB
/
audiotrapmainwindow.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
#ifndef AUDIOTRAPMAINWINDOW_H
#define AUDIOTRAPMAINWINDOW_H
#include <QMainWindow>
#include "audiotraprecorder.h"
#include "audiolevelmeter.h"
namespace Ui {
class AudioTrapMainWindow;
}
class AudioTrapMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit AudioTrapMainWindow(AudioTrapRecorder & recorder, QWidget *parent = nullptr);
~AudioTrapMainWindow();
public slots:
void show();
void addMessage(const QString &msg);
private slots:
void update();
void levelUpdate();
void on_dampeningSpinBox_valueChanged(double arg1);
void on_lowTriggerSlider_valueChanged(int value);
void on_highTriggerSlider_valueChanged(int value);
void on_activateButton_clicked();
void on_activateButton_toggled(bool checked);
void on_inputDeviceComboBox_activated(const QString &arg1);
void on_outputDirButton_clicked();
void on_containerFormatComboBox_activated(const QString &arg1);
private:
Ui::AudioTrapMainWindow *ui;
AudioTrapRecorder &m_recorder;
AudioLevelMeter &m_levelMeter;
void setThresholds(quint32 l, quint32 h);
};
#endif // AUDIOTRAPMAINWINDOW_H