-
Notifications
You must be signed in to change notification settings - Fork 0
/
recthread.h
executable file
·64 lines (51 loc) · 1.21 KB
/
recthread.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 RECTHREAD_H
#define RECTHREAD_H
#include <QFile>
#include <QAudioInput>
#include <QVariant>
#include <QAudioDeviceInfo>
class WavPcmFile;
class AudioInfo;
class QAudioFormat;
class RecThread : public QObject
{
Q_OBJECT
public:
explicit RecThread(QAudioFormat format);
~RecThread();
void run();
bool isRunning(){ return isRun;}
QAudioInput * inputAudio;
void startTest();
QString getWavFile();
void switchAutoMod(bool);
void setOverK(double);
void setIT1(int);
void setITstep1(int);
void setIT2(int);
void setITstep2(int);
void setDelay(int);
QList<QString> getDevices();
void isNeedToSavaTmpFiles(bool);
protected:
bool isRun;
WavPcmFile * m_file;
AudioInfo * m_audioInfo;
QAudioFormat m_format;
bool isTesting;
QAudioDeviceInfo m_device;
QList<QAudioDeviceInfo> devices;
signals:
void logging(QString);
void setVolumeValue(QVariant);
void setVolumeRange(QVariant);
void testStopped(int);
void needToStop();
public slots:
void changeAudioDevice(int);
void stopRecording();
void checkRecording();
void refreshVolumeInfo();
void stopTest();
};
#endif // RECTHREAD_H