mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-13 11:47:13 +01:00
Fixed humming noise
This commit is contained in:
parent
f8c9aa1be4
commit
ed49ad6f7f
@ -73,8 +73,8 @@ namespace dsp {
|
|||||||
_this->_phase += _this->_phasorSpeed;
|
_this->_phase += _this->_phasorSpeed;
|
||||||
outBuf[i].i = sin(_this->_phase);
|
outBuf[i].i = sin(_this->_phase);
|
||||||
outBuf[i].q = cos(_this->_phase);
|
outBuf[i].q = cos(_this->_phase);
|
||||||
|
_this->_phase = fmodf(_this->_phase, 2.0f * 3.1415926535); // TODO: Get a more efficient generator
|
||||||
}
|
}
|
||||||
_this->_phase = fmodf(_this->_phase, 2.0f * 3.1415926535);
|
|
||||||
if (_this->output.write(outBuf, _this->_blockSize) < 0) { break; };
|
if (_this->output.write(outBuf, _this->_blockSize) < 0) { break; };
|
||||||
}
|
}
|
||||||
delete[] outBuf;
|
delete[] outBuf;
|
||||||
|
@ -302,7 +302,7 @@ void drawWindow() {
|
|||||||
ImGui::Combo("##_1_", &srId, soapy.txtSampleRateList.c_str());
|
ImGui::Combo("##_1_", &srId, soapy.txtSampleRateList.c_str());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ImGui::Text("%s Samples/s", soapy.txtSampleRateList.c_str());
|
ImGui::Text("%.0f Samples/s", soapy.sampleRates[srId]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION_STR "0.2.1_alpha"
|
#define VERSION_STR "0.2.2_alpha"
|
Loading…
Reference in New Issue
Block a user