Fixed small bug in waterfall

This commit is contained in:
AlexandreRouma 2020-11-04 05:08:42 +01:00
parent ef968ac1fb
commit 0a5fd5c271
3 changed files with 48 additions and 46 deletions

View File

@ -98,6 +98,7 @@ namespace dsp {
generic_block<Reshaper<T>>::tempStop(); generic_block<Reshaper<T>>::tempStop();
generic_block<Reshaper<T>>::unregisterInput(_in); generic_block<Reshaper<T>>::unregisterInput(_in);
_keep = keep; _keep = keep;
ringBuf.setMaxLatency(keep * 2);
generic_block<Reshaper<T>>::registerInput(_in); generic_block<Reshaper<T>>::registerInput(_in);
generic_block<Reshaper<T>>::tempStart(); generic_block<Reshaper<T>>::tempStart();
} }
@ -116,6 +117,7 @@ namespace dsp {
if (count < 0) { return -1; } if (count < 0) { return -1; }
ringBuf.write(_in->data, count); ringBuf.write(_in->data, count);
_in->flush(); _in->flush();
return count;
} }
stream<T> out; stream<T> out;

View File

@ -37,7 +37,7 @@
"source": "", "source": "",
"sourceSettings": {}, "sourceSettings": {},
"windowSize": { "windowSize": {
"h": 720, "h": 1053,
"w": 1280 "w": 959
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"Radio": "./radio/Release/radio.dll", "Radio": "./radio/radio.so",
"Recorder": "./recorder/Release/recorder.dll", "Recorder": "./recorder/recorder.so",
"Soapy": "./soapy/Release/soapy.dll", "Soapy": "./soapy/soapy.so",
"RTLTCPSource": "./rtl_tcp_source/Release/rtl_tcp_source.dll" "RTLTCPSource": "./rtl_tcp_source/rtl_tcp_source.so"
} }