2014-12-28 00:38:00 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <obs.hpp>
|
|
|
|
#include <QDialog>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class OBSAdvAudioCtrl;
|
2015-02-11 07:49:12 -08:00
|
|
|
class QGridLayout;
|
2014-12-28 00:38:00 -08:00
|
|
|
|
|
|
|
// "Basic advanced audio"? ...
|
|
|
|
|
|
|
|
class OBSBasicAdvAudio : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
|
|
|
QWidget *controlArea;
|
2015-02-11 07:49:12 -08:00
|
|
|
QGridLayout *mainLayout;
|
2014-12-28 00:38:00 -08:00
|
|
|
OBSSignal sourceAddedSignal;
|
|
|
|
OBSSignal sourceRemovedSignal;
|
|
|
|
|
|
|
|
std::vector<OBSAdvAudioCtrl*> controls;
|
|
|
|
|
|
|
|
inline void AddAudioSource(obs_source_t *source);
|
|
|
|
|
|
|
|
static bool EnumSources(void *param, obs_source_t *source);
|
|
|
|
|
|
|
|
static void OBSSourceAdded(void *param, calldata_t *calldata);
|
|
|
|
static void OBSSourceRemoved(void *param, calldata_t *calldata);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void SourceAdded(OBSSource source);
|
|
|
|
void SourceRemoved(OBSSource source);
|
|
|
|
|
|
|
|
public:
|
|
|
|
OBSBasicAdvAudio(QWidget *parent);
|
|
|
|
};
|