Fixed humming noise

This commit is contained in:
Ryzerth 2020-07-20 20:22:13 +02:00
parent f8c9aa1be4
commit ed49ad6f7f
3 changed files with 3 additions and 3 deletions

View File

@ -73,8 +73,8 @@ namespace dsp {
_this->_phase += _this->_phasorSpeed;
outBuf[i].i = sin(_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; };
}
delete[] outBuf;

View File

@ -302,7 +302,7 @@ void drawWindow() {
ImGui::Combo("##_1_", &srId, soapy.txtSampleRateList.c_str());
}
else {
ImGui::Text("%s Samples/s", soapy.txtSampleRateList.c_str());
ImGui::Text("%.0f Samples/s", soapy.sampleRates[srId]);
}
ImGui::SameLine();

View File

@ -1,3 +1,3 @@
#pragma once
#define VERSION_STR "0.2.1_alpha"
#define VERSION_STR "0.2.2_alpha"