kopia lustrzana https://gitlab.com/eliggett/wfview
28 wiersze
595 B
C
28 wiersze
595 B
C
#ifndef AUDIOMONITOR_H
|
|
#define AUDIOMONITOR_H
|
|
|
|
#define audioMonitorBufferSize (2)
|
|
|
|
/* Opus and Eigen */
|
|
#ifdef Q_OS_WIN
|
|
#include "opus.h"
|
|
#include <Eigen/Eigen>
|
|
#else
|
|
#include "opus/opus.h"
|
|
#include <eigen3/Eigen/Eigen>
|
|
#endif
|
|
|
|
struct sharedAudioType
|
|
{
|
|
bool monitorFeatureOn = false;
|
|
bool allocated = false;
|
|
float monitorVolume = 1.0;
|
|
int testNumber = 0; // TODO: Remove test variable
|
|
int bufferWritePosition = 0;
|
|
int bufferReadPosition = 0;
|
|
Eigen::VectorXf audioData[audioMonitorBufferSize];// = {Q_NULLPTR};
|
|
void *data = Q_NULLPTR;
|
|
};
|
|
|
|
#endif // AUDIOMONITOR_H
|