random bug fixes

This commit is contained in:
Ryzerth 2020-12-09 04:47:30 +01:00
parent 16d8a31c12
commit fc9e155481
5 changed files with 7 additions and 10 deletions

View File

@ -159,10 +159,10 @@ void windowInit() {
displaymenu::init(); displaymenu::init();
// TODO for 0.2.5 // TODO for 0.2.5
// Add "select folder" option for the file source // Add "select file" option for the file source
// Add default main config to avoid having to ship one // Add default main config to avoid having to ship one
// Have a good directory system on both linux and windows (should fix occassional underruns) // Have a good directory system on both linux and windows
// Switch to double buffering // Switch to double buffering (should fix occassional underruns)
// Fix gain not updated on startup, soapysdr // Fix gain not updated on startup, soapysdr
// Fix memory leak when enabling and disabling repeatedly // Fix memory leak when enabling and disabling repeatedly

View File

@ -9,7 +9,6 @@
#define WATERFALL_RESOLUTION 1000000 #define WATERFALL_RESOLUTION 1000000
namespace ImGui { namespace ImGui {
class WaterfallVFO { class WaterfallVFO {
public: public:
void setOffset(double offset); void setOffset(double offset);

View File

@ -60,7 +60,6 @@ dsp::VFO* SignalPath::addVFO(std::string name, double outSampleRate, double band
if (vfos.find(name) != vfos.end()) { if (vfos.find(name) != vfos.end()) {
return NULL; return NULL;
} }
VFO_t vfo; VFO_t vfo;
vfo.inputStream = new dsp::stream<dsp::complex_t>; vfo.inputStream = new dsp::stream<dsp::complex_t>;
split.bindStream(vfo.inputStream); split.bindStream(vfo.inputStream);
@ -74,7 +73,6 @@ dsp::VFO* SignalPath::addVFO(std::string name, double outSampleRate, double band
void SignalPath::removeVFO(std::string name) { void SignalPath::removeVFO(std::string name) {
if (vfos.find(name) == vfos.end()) { if (vfos.find(name) == vfos.end()) {
return; return;
} }
VFO_t vfo = vfos[name]; VFO_t vfo = vfos[name];
vfo.vfo->stop(); vfo.vfo->stop();

View File

@ -80,8 +80,8 @@ void VFOManager::deleteVFO(VFOManager::VFO* vfo) {
if (name == "") { if (name == "") {
return; return;
} }
delete vfo;
vfos.erase(name); vfos.erase(name);
delete vfo;
} }
void VFOManager::setOffset(std::string name, double offset) { void VFOManager::setOffset(std::string name, double offset) {

View File

@ -1,9 +1,9 @@
{ {
"bandPlan": "General", "bandPlan": "General",
"bandPlanEnabled": true, "bandPlanEnabled": true,
"centerTuning": true, "centerTuning": false,
"fftHeight": 300, "fftHeight": 300,
"frequency": 99000000, "frequency": 100485981,
"max": 0.0, "max": 0.0,
"maximized": false, "maximized": false,
"menuOrder": [ "menuOrder": [
@ -41,7 +41,7 @@
"Radio": { "Radio": {
"muted": false, "muted": false,
"sink": "Audio", "sink": "Audio",
"volume": 0.47959184646606445 "volume": 0.41326531767845154
}, },
"Radio 1": { "Radio 1": {
"muted": false, "muted": false,