replace Arecord with Qtmultimedia (requiers pulse?)
This commit is contained in:
10
ampmanager.h
10
ampmanager.h
@ -8,9 +8,11 @@
|
||||
#include <QScopedPointer>
|
||||
#include <QEventLoop>
|
||||
#include <QTimer>
|
||||
#include <QProcess>
|
||||
#include <QByteArray>
|
||||
#include <QtDebug>
|
||||
#include <QAudioInput>
|
||||
#include <QAudioDeviceInfo>
|
||||
#include <QIODevice>
|
||||
|
||||
#include "microcontroller.h"
|
||||
|
||||
@ -19,7 +21,7 @@ class AmpManager : public QObject, public QRunnable
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AmpManager(Microcontroller *micro, int relayNumber, QObject *parent = 0);
|
||||
explicit AmpManager(Microcontroller *micro, int relayNumber, QAudioDeviceInfo device, QObject *parent = 0);
|
||||
~AmpManager();
|
||||
|
||||
|
||||
@ -36,8 +38,8 @@ private:
|
||||
Microcontroller *_micro;
|
||||
int _relayNumber;
|
||||
|
||||
|
||||
QProcess arecord;
|
||||
QAudioInput* _audioDevice;
|
||||
QIODevice* _ioDevice = nullptr;
|
||||
|
||||
bool relayState = false;
|
||||
|
||||
|
Reference in New Issue
Block a user