Rewrote the waterfall

This commit is contained in:
Ryzerth
2020-07-11 21:15:10 +02:00
parent 30f1b423a6
commit 370324bc68
8 changed files with 514 additions and 272 deletions

View File

@@ -100,7 +100,6 @@ namespace dsp {
return;
}
_tapCount = taps.size();
printf("[%d]\n", _tapCount);
delete[] _taps;
delete[] delayBuf;
_taps = new float[_tapCount];
@@ -316,7 +315,7 @@ namespace dsp {
int delaySize = (_this->_tapCount - 1) * sizeof(float);
int blockSize = _this->_blockSize;
int outBufferLength = outputSize * sizeof(complex_t);
int outBufferLength = outputSize * sizeof(float);
int tapCount = _this->_tapCount;
int decim = _this->_decim;
float* delayBuf = _this->delayBuf;

View File

@@ -38,7 +38,6 @@ namespace dsp {
while (dataRead < len) {
int canRead = waitUntilReadable();
if (canRead < 0) {
printf("Reader stopped\n");
clearReadStop();
return -1;
}
@@ -65,7 +64,6 @@ namespace dsp {
while (dataRead < len) {
int canRead = waitUntilReadable();
if (canRead < 0) {
printf("reader stopped (read and skip)\n");
clearReadStop();
return -1;
}
@@ -129,7 +127,6 @@ namespace dsp {
while (dataWrite < len) {
int canWrite = waitUntilWriteable();
if (canWrite < 0) {
printf("Writer stopped\n");
clearWriteStop();
return -1;
}

View File

@@ -346,8 +346,7 @@ namespace dsp {
return;
}
interp.stop();
//decim.stop();
Sleep(200);
decim.stop();
running = false;
}

View File

@@ -39,7 +39,6 @@ namespace dsp {
lo.start();
mixer.start();
if (_interp != 1) {
printf("UH OH INTERPOLATOR STARTED :/\n");
interp.start();
}
decim.start();