mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-08 00:44:56 -04:00
MSVC simplification, easier to use alternate libs
This commit is contained in:
@@ -20,6 +20,25 @@
|
||||
|
||||
IMPLEMENT_APP(CubicSDR)
|
||||
|
||||
#ifdef MINGW_PATCH
|
||||
FILE _iob[] = { *stdin, *stdout, *stderr };
|
||||
|
||||
extern "C" FILE * __cdecl __iob_func(void)
|
||||
{
|
||||
return _iob;
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __isnan(double x)
|
||||
{
|
||||
return _finite(x)?0:1;
|
||||
}
|
||||
|
||||
extern "C" int __cdecl __isnanf(float x)
|
||||
{
|
||||
return _finitef(x)?0:1;
|
||||
}
|
||||
#endif
|
||||
|
||||
CubicSDR::CubicSDR() : appframe(NULL), m_glContext(NULL), frequency(0), offset(0), ppm(0), snap(1), sampleRate(DEFAULT_SAMPLE_RATE), directSamplingMode(0),
|
||||
sdrThread(NULL), sdrPostThread(NULL), spectrumVisualThread(NULL), demodVisualThread(NULL), pipeSDRIQData(NULL), pipeIQVisualData(NULL), pipeAudioVisualData(NULL), t_SDR(NULL), t_PostSDR(NULL) {
|
||||
|
||||
|
||||
+3
-1
@@ -35,4 +35,6 @@ const char filePathSeparator =
|
||||
|
||||
#define DEFAULT_WATERFALL_LPS 30
|
||||
|
||||
#define CHANNELIZER_RATE_MAX 400000
|
||||
#define CHANNELIZER_RATE_MAX 400000
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -35,10 +35,10 @@ void initGLExtensions() {
|
||||
// const GLubyte *extensions = glGetString(GL_EXTENSIONS);
|
||||
// std::cout << std::endl << "Supported GL Extensions: " << std::endl << extensions << std::endl << std::endl;
|
||||
|
||||
#ifdef __linux__
|
||||
const GLint interval = 2;
|
||||
#else
|
||||
#ifdef __APPLE__
|
||||
const GLint interval = 1;
|
||||
#else
|
||||
const GLint interval = 2;
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user