forked from petersimonsson/libqatemcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qatemfairlight.h
44 lines (34 loc) · 1.3 KB
/
qatemfairlight.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
#ifndef QATEMFAIRLIGHT_H
#define QATEMFAIRLIGHT_H
#include <QObject>
#include "libqatemcontrol_global.h"
#include "qatemconnection.h"
#include "qatemsubsystembase.h"
class QAtemConnection;
class LIBQATEMCONTROLSHARED_EXPORT QAtemFairlight : public QAtemSubsystemBase
{
Q_OBJECT
public:
explicit QAtemFairlight(QObject *parent=nullptr);
public slots:
void setAudioLevelsEnabled(bool enabled);
void resetPeakLevels(bool all, bool master);
qint16 getFairlightInputCount();
protected slots:
void onFMLv(const QByteArray &payload);
void onFDLv(const QByteArray &payload);
void onFAAI(const QByteArray &payload);
void onFAIP(const QByteArray &payload);
void onFASP(const QByteArray &payload);
void onFAMP(const QByteArray &payload);
void onFMTl(const QByteArray &payload);
signals:
void audioLevelChanged(quint16 audioSource, quint16 levelLeft, quint16 levelRight, quint16 levelPeakLeft, quint16 levelPeakRight);
void masterAudioLevelChanged(quint16 levelLeft, quint16 levelRight, quint16 levelPeakLeft, quint16 levelPeakRight);
void tallyChanged(quint16 audioSource, qint8 state);
private:
QMap<quint16, QAtem::AudioInput> m_inputs;
QMap<qint16, QAtem::AudioLevel> m_input;
QMap<qint16, QAtem::AudioLevel> m_output;
};
#endif // QATEMFAIRLIGHT_H