-
Notifications
You must be signed in to change notification settings - Fork 2
/
mainwindow.h
55 lines (38 loc) · 1011 Bytes
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QAudioOutput>
#include <QAudioInput>
#include "codec2.h"
#include "source.h"//from file
#include "sink.h"//to file
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_openfiletoolButton_clicked();
void on_savefiletoolButton_clicked();
void on_playButton_clicked();
void on_stopButton_clicked();
void on_recButton_clicked();
void max_mic_volume(int percentage);
void played_file_percentage(int percentage);
void on_actionAbout_Qt_triggered();
void on_action_About_triggered();
void error_slot_msg(QString msg);
private:
Ui::MainWindow *ui;
Source *m_source;
Sink *m_sink;
QAudioFormat m_format;
QAudioOutput *m_audioOutput;
QAudioInput *m_audioInput;
QAudioDeviceInfo m_device_out,m_device_in;
};
#endif // MAINWINDOW_H