-
Notifications
You must be signed in to change notification settings - Fork 1
/
audioutils.h
27 lines (23 loc) · 767 Bytes
/
audioutils.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
#ifndef AUDIOUTILS_H
#define AUDIOUTILS_H
#include <QString>
#include <QMap>
#include <QAudioDeviceInfo>
#include <QAudioFormat>
#include <QMediaRecorder>
#include <QAudioRecorder>
#include <utility>
using namespace std;
class AudioUtils
{
public:
explicit AudioUtils();
static QAudioDeviceInfo getAudioDeviceInfo(QString name);
static QString recorderInfo(const QAudioRecorder &recorder);
static QString audioEnvInfo();
const static QMap<QMediaRecorder::State,QString> MEDIA_STATE_STRING;
const static QMap<QMediaRecorder::Status,QString> MEDIA_STATUS_STRING;
const static QMap<QMediaRecorder::Status,QString> MEDIA_STATUS_MSG_STRING;
const static QMap<QMediaRecorder::Error,QString> MEDIA_ERROR_STRING;
};
#endif // AUDIOUTILS_H