more bugfix on the meteor demod

This commit is contained in:
Ryzerth 2021-04-01 20:57:03 +02:00
parent 28aaeef2b6
commit f88e2312b8
2 changed files with 6 additions and 3 deletions

View File

@ -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; }

View File

@ -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;