-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (26 loc) · 786 Bytes
/
Copy pathmain.cpp
File metadata and controls
31 lines (26 loc) · 786 Bytes
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
#include "mainwindow.h"
#include <QApplication>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <QAudioRecorder>
#endif
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Q_INIT_RESOURCE(main);
MainWindow w;
w.show();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QAudioRecorder *recorder = new QAudioRecorder();
QStringList codecs_list = recorder->supportedAudioCodecs();
QStringList container_list = recorder->supportedContainers();
qDebug("RECORDER CODECS:");
for (int i = 0; i < codecs_list.count(); i++) {
qDebug() << codecs_list[i];
}
qDebug("\nRECORDER CONTAINERS:");
for (int i = 0; i < codecs_list.count(); i++) {
qDebug() << codecs_list[i];
}
#endif
return a.exec();
}