More bugfix

This commit is contained in:
Ryzerth
2021-03-30 03:37:40 +02:00
parent ce56d03c3e
commit bcc1744a76
7 changed files with 20 additions and 6 deletions

View File

@ -131,7 +131,8 @@ int sdrpp_main(int argc, char *argv[]) {
defConfig["moduleInstances"]["RTL-SDR Source"] = "rtl_sdr_source";
defConfig["moduleInstances"]["AirspyHF+ Source"] = "airspyhf_source";
defConfig["moduleInstances"]["Airspy Source"] = "airspy_source";
//defConfig["moduleInstances"]["SDRplay Source"] = "sdrplay_source";
defConfig["moduleInstances"]["File Source"] = "file_source";
defConfig["moduleInstances"]["SDRplay Source"] = "sdrplay_source";
defConfig["moduleInstances"]["Audio Sink"] = "audio_sink";
defConfig["modules"] = json::array();

View File

@ -129,8 +129,8 @@ namespace dsp {
RealToComplex(stream<float>* in) { init(in); }
~RealToComplex() {
delete[] nullBuffer;
generic_block<RealToComplex>::stop();
delete[] nullBuffer;
}
void init(stream<float>* in) {

View File

@ -193,7 +193,7 @@ namespace dsp {
StereoFMDemod(stream<complex_t>* in, float sampleRate, float deviation) { init(in, sampleRate, deviation); }
~StereoFMDemod() {
stop();
generic_block<StereoFMDemod>::stop();
delete[] doubledPilot;
delete[] a_minus_b;
delete[] a_out;

View File

@ -103,8 +103,6 @@ namespace dsp {
NullSink(stream<T>* in) { init(in); }
~NullSink() { generic_block<NullSink<T>>::stop(); }
void init(stream<T>* in) {
_in = in;
generic_block<NullSink<T>>::registerInput(_in);

View File

@ -54,7 +54,6 @@
// int fftSizeId = 0;
int fftSize = 8192 * 8;
std::thread worker;
std::mutex fft_mtx;
fftwf_complex *fft_in, *fft_out;
fftwf_plan p;