xdsopl-qsstv/qsstv/appdefs.h

35 wiersze
822 B
C++

#ifndef APPDEFS_H
#define APPDEFS_H
#include <stdint.h>
#include <complex>
using namespace std; /* Because of the library: "complex" */
#define SOUNDFRAME quint32
#define BASESAMPLERATE 48000
#define SUBSAMPLINGFACTOR 4
#define MONOCHANNEL 1
#define STEREOCHANNEL 2
#define RXSTRIPE 1024
#define TXSTRIPE 1024
#define FILTERPARAMTYPE double
#define DOWNSAMPLESIZE (SUBSAMPLINGFACTOR*RXSTRIPE)
#define SAMPLERATE (BASESAMPLERATE/SUBSAMPLINGFACTOR)
#undef DISABLENARROW
typedef double DSPFLOAT;
typedef unsigned char byte;
/* Define the application specific data-types ------------------------------- */
typedef double _REAL;
typedef complex<_REAL> _COMPLEX;
typedef short _SAMPLE;
typedef unsigned char _BYTE;
typedef bool _BOOLEAN;
typedef unsigned char _BINARY;
#endif // APPDEFS_H