2018-02-10 00:32:32 +08:00
|
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
#include <qqtaudiomanager.h>
|
2018-02-13 20:21:20 +08:00
|
|
|
|
#include <qqtwavaudiomanager.h>
|
2018-02-10 00:32:32 +08:00
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class MainWindow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit MainWindow ( QWidget* parent = 0 );
|
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
|
|
QAudioDeviceInfo findInputAudioDeviceInfoByName ( QString devName );
|
|
|
|
|
|
|
|
|
|
QAudioDeviceInfo findOutputAudioDeviceInfoByName ( QString devName );
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void on_pushButton_2_clicked();
|
|
|
|
|
void currentInputRowChanged ( QModelIndex, QModelIndex );
|
|
|
|
|
void currentOutputRowChanged ( QModelIndex, QModelIndex );
|
|
|
|
|
void on_pushButton_clicked();
|
|
|
|
|
void readyRead();
|
2018-02-13 20:21:20 +08:00
|
|
|
|
|
|
|
|
|
//录音到wav
|
|
|
|
|
void wavRecReadyRead();
|
|
|
|
|
//读取rec wav播放
|
|
|
|
|
void wavFileReadyRead();
|
2018-02-10 10:59:35 +08:00
|
|
|
|
void on_pushButton_3_clicked();
|
|
|
|
|
|
2018-02-10 13:18:08 +08:00
|
|
|
|
void on_inHS_valueChanged ( int value );
|
|
|
|
|
|
|
|
|
|
void on_outHS_valueChanged ( int value );
|
|
|
|
|
|
2018-02-10 16:12:47 +08:00
|
|
|
|
void on_pushButton_4_clicked();
|
|
|
|
|
|
2018-02-12 16:58:34 +08:00
|
|
|
|
void on_pushButton_5_clicked();
|
|
|
|
|
|
|
|
|
|
void on_pushButton_6_clicked();
|
|
|
|
|
|
2018-02-13 11:50:16 +08:00
|
|
|
|
void on_pushButton_7_clicked();
|
|
|
|
|
|
2018-02-13 20:21:20 +08:00
|
|
|
|
void on_pushButton_8_clicked();
|
|
|
|
|
|
|
|
|
|
void on_pushButton_9_clicked();
|
|
|
|
|
|
|
|
|
|
void on_pushButton_10_clicked();
|
|
|
|
|
|
|
|
|
|
void on_pushButton_11_clicked();
|
|
|
|
|
|
|
|
|
|
void on_pushButton_12_clicked();
|
|
|
|
|
|
2018-02-10 00:32:32 +08:00
|
|
|
|
private:
|
|
|
|
|
Ui::MainWindow* ui;
|
|
|
|
|
QQtAudioManager manager;
|
2018-02-13 20:21:20 +08:00
|
|
|
|
|
|
|
|
|
QQtAudioManager wavRecManager;
|
|
|
|
|
QQtWavAudioManager wavFileManager;
|
2018-02-10 00:32:32 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|