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

@ -1,43 +1,43 @@
{ {
"audio": { "audio": {
"Radio": { "Radio": {
"device": "Speakers (Realtek High Definiti", "device": "Speakers (Realtek High Definiti",
"sampleRate": 48000.0, "sampleRate": 48000.0,
"volume": 0.7265625 "volume": 0.7265625
}, },
"Radio 1": { "Radio 1": {
"device": "Speakers (Realtek High Definition Audio)", "device": "Speakers (Realtek High Definition Audio)",
"sampleRate": 48000.0, "sampleRate": 48000.0,
"volume": 0.609375 "volume": 0.609375
}, },
"Radio 2": { "Radio 2": {
"device": "CABLE Input (VB-Audio Virtual Cable)", "device": "CABLE Input (VB-Audio Virtual Cable)",
"sampleRate": 48000.0, "sampleRate": 48000.0,
"volume": 1.0 "volume": 1.0
} }
}, },
"bandPlan": "General", "bandPlan": "General",
"bandPlanEnabled": true, "bandPlanEnabled": true,
"fftHeight": 296, "fftHeight": 296,
"frequency": 99000000, "frequency": 99000000,
"max": 0.0, "max": 0.0,
"maximized": false, "maximized": false,
"menuOrder": [ "menuOrder": [
"Source", "Source",
"Radio", "Radio",
"Recorder", "Recorder",
"Audio", "Audio",
"Scripting", "Scripting",
"Band Plan", "Band Plan",
"Display" "Display"
], ],
"menuWidth": 300, "menuWidth": 300,
"min": -52.20588302612305, "min": -52.20588302612305,
"showWaterfall": true, "showWaterfall": true,
"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"
} }