2018-02-10 00:32:32 +08:00
|
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
#include <qqtaudiomanager.h>
|
|
|
|
|
|
|
|
|
|
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:
|
2019-02-28 16:29:23 +08:00
|
|
|
|
void readyRead();
|
2018-02-10 00:32:32 +08:00
|
|
|
|
void currentInputRowChanged ( QModelIndex, QModelIndex );
|
|
|
|
|
void currentOutputRowChanged ( QModelIndex, QModelIndex );
|
2019-02-28 16:29:23 +08:00
|
|
|
|
void on_pushButton_2_clicked();
|
2018-02-10 00:32:32 +08:00
|
|
|
|
void on_pushButton_clicked();
|
2018-02-10 10:59:35 +08:00
|
|
|
|
void on_pushButton_3_clicked();
|
2018-02-10 16:12:47 +08:00
|
|
|
|
void on_pushButton_4_clicked();
|
2018-02-10 00:32:32 +08:00
|
|
|
|
private:
|
|
|
|
|
Ui::MainWindow* ui;
|
|
|
|
|
QQtAudioManager manager;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|