Skip to content

Commit

Permalink
Fixed humming noise
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzerth committed Jul 20, 2020
1 parent f8c9aa1 commit ed49ad6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dsp/source.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

#define VERSION_STR "0.2.1_alpha"
#define VERSION_STR "0.2.2_alpha"

0 comments on commit ed49ad6

Please sign in to comment.