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();
// 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
// Have a good directory system on both linux and windows (should fix occassional underruns)
// Switch to double buffering
// Have a good directory system on both linux and windows
// Switch to double buffering (should fix occassional underruns)
// Fix gain not updated on startup, soapysdr
// Fix memory leak when enabling and disabling repeatedly

View File

@ -9,7 +9,6 @@
#define WATERFALL_RESOLUTION 1000000
namespace ImGui {
class WaterfallVFO {
public:
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()) {
return NULL;
}
VFO_t vfo;
vfo.inputStream = new dsp::stream<dsp::complex_t>;
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) {
if (vfos.find(name) == vfos.end()) {
return;
}
VFO_t vfo = vfos[name];
vfo.vfo->stop();

View File

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

View File

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