mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 02:18:30 +01:00
more bugfix on the meteor demod
This commit is contained in:
parent
28aaeef2b6
commit
f88e2312b8
@ -251,7 +251,10 @@ int sdrpp_main(int argc, char *argv[]) {
|
||||
|
||||
// Setup Platform/Renderer bindings
|
||||
ImGui_ImplGlfw_InitForOpenGL(window, true);
|
||||
ImGui_ImplOpenGL3_Init(glsl_version);
|
||||
|
||||
if (ImGui_ImplOpenGL3_Init(glsl_version)) {
|
||||
spdlog::warn("Working!");
|
||||
}
|
||||
|
||||
if (!style::setDarkStyle(resDir)) { return -1; }
|
||||
|
||||
|
@ -158,8 +158,8 @@ private:
|
||||
std::lock_guard<std::mutex> lck(_this->recMtx);
|
||||
if (!_this->recording) { return; }
|
||||
for (int i = 0; i < count; i++) {
|
||||
_this->writeBuffer[(2 * i)] = data[i].re * 64.0f;
|
||||
_this->writeBuffer[(2 * i) + 1] = data[i].im * 64.0f;
|
||||
_this->writeBuffer[(2 * i)] = std::clamp<int>(data[i].re * 84.0f, -127, 127);
|
||||
_this->writeBuffer[(2 * i) + 1] = std::clamp<int>(data[i].im * 84.0f, -127, 127);
|
||||
}
|
||||
_this->recFile.write((char*)_this->writeBuffer, count * 2);
|
||||
_this->dataWritten += count * 2;
|
||||
|
Loading…
Reference in New Issue
Block a user