diff --git a/core/src/core.cpp b/core/src/core.cpp index 8ca6770..7909317 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -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; } diff --git a/meteor_demodulator/src/main.cpp b/meteor_demodulator/src/main.cpp index ed24f09..c38524c 100644 --- a/meteor_demodulator/src/main.cpp +++ b/meteor_demodulator/src/main.cpp @@ -158,8 +158,8 @@ private: std::lock_guard 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(data[i].re * 84.0f, -127, 127); + _this->writeBuffer[(2 * i) + 1] = std::clamp(data[i].im * 84.0f, -127, 127); } _this->recFile.write((char*)_this->writeBuffer, count * 2); _this->dataWritten += count * 2;