mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-08-14 15:33:41 -04:00
GL context init fixes and warning cleanup
This commit is contained in:
@@ -292,7 +292,6 @@ void DemodulatorInstance::setFrequency(long long freq) {
|
||||
command.llong_value = freq;
|
||||
threadQueueCommand->push(command);
|
||||
}
|
||||
demodulatorPreThread->getParams().bandwidth;
|
||||
}
|
||||
|
||||
long long DemodulatorInstance::getFrequency() {
|
||||
|
||||
@@ -100,6 +100,8 @@ void DemodulatorPreThread::threadMain() {
|
||||
case DemodulatorThreadCommand::DEMOD_THREAD_CMD_SET_FREQUENCY:
|
||||
params.frequency = command.llong_value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -227,6 +229,8 @@ void DemodulatorPreThread::threadMain() {
|
||||
params.bandwidth = result.bandwidth;
|
||||
params.sampleRate = result.sampleRate;
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -243,6 +247,10 @@ void DemodulatorPreThread::threadMain() {
|
||||
tCmd.context = this;
|
||||
threadQueueNotify->push(tCmd);
|
||||
std::cout << "Demodulator preprocessor thread done." << std::endl;
|
||||
|
||||
#ifdef __APPLE__
|
||||
return this;
|
||||
#endif
|
||||
}
|
||||
|
||||
void DemodulatorPreThread::terminate() {
|
||||
|
||||
@@ -410,6 +410,10 @@ void DemodulatorThread::threadMain() {
|
||||
tCmd.context = this;
|
||||
threadQueueNotify->push(tCmd);
|
||||
std::cout << "Demodulator thread done." << std::endl;
|
||||
|
||||
#ifdef __APPLE__
|
||||
return this;
|
||||
#endif
|
||||
}
|
||||
|
||||
void DemodulatorThread::setVisualOutputQueue(DemodulatorThreadOutputQueue *tQueue) {
|
||||
|
||||
@@ -27,6 +27,8 @@ void DemodulatorWorkerThread::threadMain() {
|
||||
filterChanged = true;
|
||||
filterCommand = command;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
done = commandQueue->empty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user