1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-25 04:03:30 -05:00
Commit Graph

844 Commits

Author SHA1 Message Date
f4exb
7e6267f41c SSB demod: use delay line to squeeze squelch tail 2018-04-22 09:37:34 +02:00
f4exb
4670cbaa33 Merge branch 'master' into dev 2018-04-22 07:48:13 +02:00
f4exb
e206d65283
Merge pull request #162 from jigpu/spelling-fixes
Spelling fixes
2018-04-22 07:45:20 +02:00
f4exb
a099b05fb6
Merge pull request #164 from jigpu/memleak-fixes
Memleak fixes
2018-04-22 07:40:58 +02:00
Jason Gerecke
1eaae0de30 BFM demod: Delete the SpectrumVis when destroying BFMDemodGUI
Take care of a pair of memory leaks that occur when the BFM demod GUI
is closed.

==786== 19,952 (24 direct, 19,928 indirect) bytes in 1 blocks are definitely lost in loss record 7,065 of 7,081
==786==    at 0x4C2D54F: operator new(unsigned long) (vg_replace_malloc.c:334)
==786==    by 0x54C82ED: allocate (new_allocator.h:111)
==786==    by 0x54C82ED: allocate (alloc_traits.h:436)
==786==    by 0x54C82ED: _M_get_node (stl_list.h:383)
==786==    by 0x54C82ED: _M_create_node<FFTWEngine::Plan* const&> (stl_list.h:572)
==786==    by 0x54C82ED: _M_insert<FFTWEngine::Plan* const&> (stl_list.h:1801)
==786==    by 0x54C82ED: push_back (stl_list.h:1118)
==786==    by 0x54C82ED: FFTWEngine::configure(int, bool) (fftwengine.cpp:35)
==786==    by 0x4F4590B: SpectrumVis::handleConfigure(int, int, FFTWindow::Function) (spectrumvis.cpp:206)
==786==    by 0x4F459EE: SpectrumVis::handleMessage(Message const&) (spectrumvis.cpp:170)
==786==    by 0x548346C: BasebandSampleSink::handleInputMessages() (basebandsamplesink.cpp:21)
==786==    by 0x69E1615: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/libQt5Core.so.5.10.1)
==786==    by 0x5497D4B: MessageQueue::push(Message*, bool) (messagequeue.cpp:52)
==786==    by 0x33F9D61A: BFMDemodGUI::BFMDemodGUI(PluginAPI*, DeviceUISet*, BasebandSampleSink*, QWidget*) (bfmdemodgui.cpp:352)
==786==    by 0x33F9D985: BFMDemodGUI::create(PluginAPI*, DeviceUISet*, BasebandSampleSink*) (bfmdemodgui.cpp:50)
==786==    by 0x33FB035D: non-virtual thunk to BFMPlugin::createRxChannelGUI(DeviceUISet*, BasebandSampleSink*) (bfmplugin.cpp:57)
==786==    by 0x4F47F19: DeviceUISet::loadRxChannelSettings(Preset const*, PluginAPI*) (deviceuiset.cpp:201)
==786==    by 0x4EA51EA: MainWindow::loadPresetSettings(Preset const*, int) (mainwindow.cpp:575)
==786==    by 0x4EAC81B: MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) (mainwindow.cpp:176)
==786==    by 0x10A49B: runQtApplication(int, char**, qtwebapp::LoggerWithFile*) (main.cpp:120)
==786==    by 0x109B38: main (main.cpp:131)
==786==
==786== 54,096 (112 direct, 53,984 indirect) bytes in 1 blocks are definitely lost in loss record 7,075 of 7,081
==786==    at 0x4C2D54F: operator new(unsigned long) (vg_replace_malloc.c:334)
==786==    by 0x69E9162: QObject::QObject(QObject*) (in /usr/lib/libQt5Core.so.5.10.1)
==786==    by 0x5497BEE: MessageQueue::MessageQueue(QObject*) (messagequeue.cpp:26)
==786==    by 0x54834FF: BasebandSampleSink::BasebandSampleSink() (basebandsamplesink.cpp:6)
==786==    by 0x4F45A29: SpectrumVis::SpectrumVis(float, GLSpectrum*) (spectrumvis.cpp:26)
==786==    by 0x33F9D53C: BFMDemodGUI::BFMDemodGUI(PluginAPI*, DeviceUISet*, BasebandSampleSink*, QWidget*) (bfmdemodgui.cpp:342)
==786==    by 0x33F9D985: BFMDemodGUI::create(PluginAPI*, DeviceUISet*, BasebandSampleSink*) (bfmdemodgui.cpp:50)
==786==    by 0x33FB035D: non-virtual thunk to BFMPlugin::createRxChannelGUI(DeviceUISet*, BasebandSampleSink*) (bfmplugin.cpp:57)
==786==    by 0x4F47F19: DeviceUISet::loadRxChannelSettings(Preset const*, PluginAPI*) (deviceuiset.cpp:201)
==786==    by 0x4EA51EA: MainWindow::loadPresetSettings(Preset const*, int) (mainwindow.cpp:575)
==786==    by 0x4EAC81B: MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) (mainwindow.cpp:176)
==786==    by 0x10A49B: runQtApplication(int, char**, qtwebapp::LoggerWithFile*) (main.cpp:120)
==786==    by 0x109B38: main (main.cpp:131)
2018-04-21 18:56:21 -07:00
Jason Gerecke
141997475c BFM demod: RDS demod: Initialize RDSDemod array elements
The m_parms.tot_errs array is not initialized prior to its first use
in the RDSDemod::biphase function. ASAN does not pick up on this
directly, but instead reports it as follows (note that ASAN fills
memory with 0xBE and -1094795586 is 0xBEBEBEBE):

    ./plugins/channelrx/demodbfm/rdsdemod.cpp:159:95: runtime error: signed
    integer overflow: -1094795586 + -1094795586 cannot be represented in type
    'int'

The m_parms.subcarr_bb array does not appear to be read prior to
initialization, but we initialize it to zero anyway for the sake
of good hygiene.
2018-04-21 18:54:19 -07:00
Jason Gerecke
8cf3469c87 Fix spelling errors in documentation 2018-04-21 18:45:09 -07:00
Jason Gerecke
f6ea7b216e Fix spelling errors present in UI files 2018-04-21 18:44:54 -07:00
f4exb
b4a77e08c8 DSD demod: symmetrical attack and decay for squelch like NFM 2018-04-21 17:22:07 +02:00
f4exb
84538f1acf DSD demod: use buffered squelch to start decoding at the very beginning of the transmission regardless of squelch gate length 2018-04-21 09:56:12 +02:00
f4exb
12f5f4e30c NFM demod: buffered squelch 2018-04-21 09:23:01 +02:00
f4exb
8c891a191a UDP source and sink: ensure proper click focus on line edits 2018-04-20 00:17:10 +02:00
f4exb
15f7c4d80e UDP source and sink: added dialogs to specify addresses and ports 2018-04-19 23:03:21 +02:00
f4exb
befc08f2e1 UDP source: send audio samples always on 16 bits. Options to send raw I/Q in either 16 or 24 bits regardless of sample size at compile time 2018-04-19 13:34:22 +02:00
f4exb
5c51297717 Moved FFT filter destruction at end of the mod or demod destructor 2018-04-18 22:20:47 +02:00
f4exb
aa3f12ec46 NFM demod: assymetrical fade in and fade out for the squelch 2018-04-17 09:15:02 +02:00
f4exb
01798c9d15 BFM demod: RDS parser: fixed compiler warning 2018-04-15 22:03:31 +02:00
f4exb
eb047ba15e DATV demod: removed reference to deleted method 2018-04-15 21:13:47 +02:00
f4exb
9c7026ae5e NFM demod: fixed AF squelch setting according to audio sample rate. Fixed discriminator. Added details to documentation. 2018-04-14 21:45:45 +02:00
f4exb
9196c6f0c7 NFM demod: adjusted deviations, scaling and audio volume 2018-04-14 04:45:22 +02:00
f4exb
6e1005018f NFM demod: limit volume setting to a maximum of 2.0 with a default of 1.0 2018-04-12 01:21:34 +02:00
f4exb
a37443fe58 BFM demod: bumped version 2018-04-12 00:13:40 +02:00
f4exb
2d0e0290a0 BFM demod: fixed RDS parser bug when processing optional content (issue #157) 2018-04-12 00:12:51 +02:00
f4exb
dac48f9a6d NFM demod: corrections applied to the audio sample rate depedent parameters 2018-04-11 01:31:48 +02:00
f4exb
83efddee9a Build ModWFM tx channel server plugin and apply corrections to other server plugins 2018-04-09 00:54:25 +02:00
f4exb
275a020818 AM demod: implemented server plugin. Corrections to NFM demod server plugin 2018-04-05 20:13:05 +02:00
f4exb
8dfdc1086c PVS-Studio static analysis corrections (4) 2018-04-04 23:39:31 +02:00
f4exb
5a5d9e497e DSD demod: Windows build 2018-04-02 00:35:56 +02:00
f4exb
04d7e56f84 DSD demod: status text dialog: removed auto default on save button 2018-04-02 00:21:12 +02:00
f4exb
dd1686df9e DSD demod: updated documentation and Debian changelog 2018-04-01 23:49:26 +02:00
f4exb
21aaeaedda DSD demod: status text log dialog save to file 2018-04-01 22:45:43 +02:00
f4exb
8d64ca2068 DSD demod: new dialog to show status text log 2018-04-01 22:14:11 +02:00
f4exb
a447193bd7 DSD demod: make FM deviation independent of RF bandwidth. Bumped version to 3.14.1 2018-04-01 09:33:08 +02:00
f4exb
f838258937 NFM mod and demod: fixed lowpass filter initialization at construction time (segfault correction with CTCSS) 2018-03-31 15:06:35 +02:00
f4exb
deefab7c7c ATV demod: fixed segfault when TV screen pointer is not set yet by the GUI 2018-03-30 23:41:48 +02:00
f4exb
53beb8a92d Removed UDP address and port from Channel marker 2018-03-30 19:06:27 +02:00
f4exb
e0356a39a5 Multiple audio: updated plugins documentation 2018-03-30 11:51:57 +02:00
f4exb
8735ca97ca AM, NFM, SSB demods: make audio FIFO length 1s for any audio sample rate 2018-03-30 08:55:49 +02:00
f4exb
10fe136b5e SSB demod: fixed AGC constants audio sample rate dependency 2018-03-30 02:07:03 +02:00
f4exb
dbc9e78077 DATV demod: fixed message handling 2018-03-29 10:03:52 +02:00
f4exb
acb96acd85 Multiple audio support: Web API: AMDemod and NFMDemod: implemented audio device name in settings 2018-03-29 07:55:51 +02:00
f4exb
231cb45aa6 Removed obsolete references to AudioNetSink 2018-03-28 10:00:56 +02:00
f4exb
28cb4e7c3c AM demod: removed UDP/RTP copy audio entirely 2018-03-28 09:58:45 +02:00
f4exb
3b882e78b4 BFM demod: removed UDP/RTP copy audio entirely 2018-03-28 09:43:33 +02:00
f4exb
289318beaa NFM demod: removed UDP/RTP copy audio entirely 2018-03-28 09:40:24 +02:00
f4exb
4501066426 SSB demod: removed UDP/RTP copy audio entirely 2018-03-28 09:27:47 +02:00
f4exb
814764eeee WFM demod: remove UDP/RTP copy audio entirely 2018-03-28 09:18:28 +02:00
f4exb
f71446b6ec Multiple audio support: DSD demodulator: allow to use native 8k decoder if audio sample rate is 8k 2018-03-28 08:43:11 +02:00
f4exb
c4b092dff0 Multiple audio support: DSD demodulator 2018-03-28 08:00:27 +02:00
f4exb
44b4b3cc85 Multiple audio support: WFM demodulator 2018-03-28 07:44:54 +02:00
f4exb
ae0470218c Multiple audio support: BFM demodulator 2018-03-27 23:57:29 +02:00
f4exb
275144ae97 Multiple audio support: NFM demodulator 2018-03-27 13:18:00 +02:00
f4exb
4d324875b9 Bumped to v3.14.0 and allow decimation by 64 on all input plugins (missing yet: BladeRF and RTLSDR) 2018-03-27 11:32:39 +02:00
f4exb
4fbb8f74c8 Multiple audio support: SSB demodulator 2018-03-27 11:17:11 +02:00
f4exb
d67c3adeb4 Plugins: RTP cleanup 2018-03-27 09:20:23 +02:00
f4exb
ebf3b1fc4b RTP fixes 2018-03-27 09:04:10 +02:00
f4exb
e64ed09308 Option to disable RTP when constructing the AudioNetSink 2018-03-27 08:13:06 +02:00
f4exb
6887a7d61e AM demod: removed RTP over UDP. Changed fixed volume factor depending on audio sample rate 2018-03-27 01:30:44 +02:00
f4exb
c8a6bb71ba AM demod: remove UDP copy using RTP 2018-03-27 00:57:41 +02:00
f4exb
a0282dd3d9 DSD demod: removed copy to UDP/RTP 2018-03-27 00:38:26 +02:00
f4exb
6f8d546ab7 BFM demod: removed copy to UDP/RTP 2018-03-27 00:30:21 +02:00
f4exb
a049e3aaa6 Multiple audio support: Select output device in AM demod 2018-03-26 18:41:09 +02:00
f4exb
095ab14a14 Multiple audio support: New audio preferences dialog (3). Application to AM demod 2018-03-26 11:55:45 +02:00
f4exb
745e187e2b Multiple audio support: extend audio output information to UDP/RTP information. New audio preferences dialog 2018-03-25 11:50:34 +02:00
f4exb
7aaa230eb4 Multiple audio support: added ability to manage more than one audio output 2018-03-24 23:50:28 +01:00
f4exb
5b844c2618 Windows build updates 2018-03-24 09:12:34 +01:00
f4exb
15e62814de Multiple audio support: removed audio methods from DSP engine and use AudioDeviceManager instead 2018-03-24 03:36:49 +01:00
f4exb
94d3c7155c TV screen: removed useless render immediate indicator 2018-03-23 09:24:18 +01:00
f4exb
1204734b58 Web API: AM demod and AirspyHF: many fixes 2018-03-22 06:34:51 +01:00
f4exb
7ad8e50651 Web API: AM demod: implemented settings and report entry points 2018-03-21 23:49:16 +01:00
f4exb
d4e1521c90 Web API: new entry point to get a channel report. Applied to NFM mod and demod 2018-03-18 20:17:11 +01:00
f4exb
d042507c8f DATV demod: fixed initialization sequence in constructor 2018-03-17 01:00:46 +01:00
f4exb
170c59de43 Channel Rx demods: in constructor make sure the thread is launched when all members have been properly initialized (i.e. do it last) 2018-03-16 10:24:19 +01:00
f4exb
0157c950f4 DSD demod: GUI cosmetic change 2018-03-15 01:22:40 +01:00
f4exb
09905c362a DATV demod: TV screen graticule optimization 2018-03-15 00:58:18 +01:00
f4exb
8d984c2f09 DSD demod: TV screen graticule optimization 2018-03-15 00:16:50 +01:00
f4exb
56178c65cf DSD demod: updated documentation following GUI redesign 2018-03-14 05:16:07 +01:00
f4exb
d555333f8e DSD demod: GUI scope simplification (7) 2018-03-13 08:16:39 +01:00
f4exb
c2544b528e DSD demod: GUI scope simplification (6) 2018-03-13 01:39:43 +01:00
f4exb
dc5f1397b6 DSD demod: GUI scope simplification (5) 2018-03-12 20:39:16 +01:00
f4exb
e317a0bbea DSD demod: GUI scope simplification (4) 2018-03-12 09:18:21 +01:00
f4exb
47036d8c3a DSD demod: GUI scope simplification (3) 2018-03-12 05:27:21 +01:00
f4exb
1728f91d15 DSD demod: GUI scope simplification (2) 2018-03-12 05:23:09 +01:00
f4exb
de68eb360f DSD demod: GUI scope simplification (1) 2018-03-12 05:07:51 +01:00
f4exb
35138b0e93 Unify TV screen (5) 2018-03-11 19:43:40 +01:00
f4exb
6109be8eeb Unify TV screen (4) 2018-03-11 17:11:02 +01:00
f4exb
707ce197cd Unify TV screen (3) 2018-03-11 16:39:02 +01:00
f4exb
def91c4019 Unify TV screen (2) 2018-03-11 13:00:33 +01:00
f4exb
7d63bf48e0 DATV demod: updated documentation 2018-03-11 12:25:18 +01:00
f4exb
5c6bdb5c3d Debian build. Corrected ffmpeg dependency 2018-03-11 12:24:55 +01:00
f4exb
8e6438908b Unify TV screen (1) 2018-03-11 12:22:00 +01:00
f4exb
1b8ad814e5 DATV demod: header includes cleanup 2018-03-11 01:00:27 +01:00
f4exb
30dd4f4c4b DATV demod: fixed delta frequency dial setting at deserialization 2018-03-11 00:17:22 +01:00
f4exb
107b1c9ae6 DATV demod: prevent segfault when DATV constellation screen is not registered 2018-03-11 00:16:39 +01:00
f4exb
0486462398 DATV demod: GUI changes (4) 2018-03-10 23:01:03 +01:00
f4exb
b2e446afcc Windows build: new location for export header 2018-03-10 20:32:46 +01:00
f4exb
93d0d28add DATV demod: GUI changes (3) 2018-03-10 20:15:20 +01:00
f4exb
d1fafce4b6 DATV demod: GUI changes (2) 2018-03-10 19:30:55 +01:00
f4exb
82ec3891c5 DATV demod: GUI changes (1) 2018-03-10 10:43:22 +01:00
f4exb
dc9cb0463f BFM demod: implement RTP over UDP for audio copy 2018-03-10 07:03:11 +01:00
f4exb
7bf9252039 WFM demod: implement RTP over UDP for audio copy 2018-03-10 06:13:15 +01:00
f4exb
46f80e2a15 DSD demod: implement RTP over UDP for audio copy final 2018-03-09 06:54:45 +01:00
f4exb
5fa4454b5a Added .vscode folder to .gitignore 2018-03-08 18:53:02 +01:00
f4exb
d34ff61032 DSD demod: implement RTP over UDP for audio copy (part 2) 2018-03-08 08:59:17 +01:00
f4exb
3dbf59cd1d DSD demod: implement RTP over UDP for audio copy (part 1) 2018-03-07 01:39:02 +01:00
f4exb
26995aae1c SSB demod: implement RTP over UDP for audio copy 2018-03-07 01:15:59 +01:00
f4exb
1200e09012 AM demod: implement RTP over UDP for audio copy 2018-03-07 00:55:08 +01:00
f4exb
5b8a5efd3f NFM demod: replace RTP button switch by a checkbox 2018-03-07 00:28:50 +01:00
f4exb
9dacbb6d83 qrtplib: NFM demod implementation. Also solve issue Cannot create children for a parent that is in a different thread on UDP sink used for copy audio to UDP 2018-03-06 02:23:47 +01:00
f4exb
503c6093b9 DATV demod: removed using namespace leansdr 2018-03-04 04:00:02 +01:00
f4exb
c062c99c2a DATV demod: tried to fix segfault on avcodec_close() 2018-03-04 02:35:15 +01:00
f4exb
28e9df5fe8 Clang clean compile 2018-03-04 01:47:51 +01:00
f4exb
980192548d Adapt to MSVC linker: removed SDRANGEL_API 2018-03-03 21:19:59 +01:00
f4exb
2b1d5f0838 Fixed -Woverloaded-virtual warnings 2018-03-03 10:06:47 +01:00
f4exb
34bdfbf495 class vs struct mismatch fixes 2018-03-01 09:14:37 +01:00
f4exb
d6cc7ef23d DATV Demod: removed VLAs in leansdr. Activated VLA warning at compile time 2018-03-01 04:15:46 +01:00
f4exb
9bcabb708d DATV demod: use cmake finder module for FFmpeg 2018-02-28 08:37:03 +01:00
f4exb
2393957834 DATV demod: some fixes to enhance stability 2018-02-27 08:42:22 +01:00
f4exb
a406128c47 DATV demod: GUI: added tooltip 2018-02-26 01:33:50 +01:00
f4exb
1e360fa63c DATV demodulator: leansdr: missing initialization 2018-02-26 01:13:48 +01:00
f4exb
1436844fb3 DATV demodulator: improvements 2018-02-26 01:04:45 +01:00
f4exb
a483b58028 DATV demodulator: leansdr: removed calls to exit 2018-02-26 01:02:33 +01:00
f4exb
e53da4e9a8 DATV demod: make sure that when baseband rate changes the channelizer is reconfigured to get all available bandwidth 2018-02-25 03:22:30 +01:00
f4exb
916a284b48 DATV demod: message formatting and boolean test correction 2018-02-25 03:21:01 +01:00
f4exb
400c712ca8 Bumped to v3.13.0 2018-02-25 00:31:19 +01:00
f4exb
3354c774fc DATV demod: fixed compilation warnings 2018-02-25 00:07:08 +01:00
f4exb
2e5cfcafee PVS-Studio static analysis corrections (3) issue #137 2018-02-24 10:29:27 +01:00
f4exb
9c3986ecbb DATV demod: compile for 16 bit Rx DSP only. Cosmetic changes 2018-02-23 00:55:50 +01:00
f4exb
f1f7a0058c DATV demod: reception of the code 2018-02-22 22:52:49 +01:00
f4exb
66ddd6faa8 NFM demod: hide use RTP button if audio sink is not RTP capable 2018-02-22 05:06:19 +01:00
f4exb
2b846f5d28 PVS-Studio static analysis corrections (2) issue #137 2018-02-22 03:04:42 +01:00
f4exb
0ce9035e0a Web API: fixed webapiSettingsGet not initializing own channel or device structure 2018-02-21 13:50:50 +01:00
f4exb
9f220f182c RTP support: fixed RTPSink with a new version of the JRTPlib library 2018-02-21 00:28:14 +01:00
f4exb
de2f47dd85 Web API: NFM demod: implemented use RTP indicator 2018-02-20 20:07:23 +01:00
f4exb
175c3ab61e RTP support: fixed RTPSink (2) and use in NFM Demod 2018-02-20 19:18:23 +01:00
f4exb
9a3832a14f AM and NFM demods: skip feed completely if not in running state 2018-02-20 00:14:50 +01:00
f4exb
28a4649e2f AM and NFM demod: sanitize tail fill audio sink FIFO 2018-02-18 14:46:36 +01:00
f4exb
9162a51f41 DSD demod: delete scope vis to fix memory leak 2018-02-17 21:02:48 +01:00
f4exb
8da0d3a8b4 DSD demod: fixed index overflow 2018-02-17 09:35:17 +01:00
f4exb
ae8eddbfda Channel Analyzer NG: delete objects unconditionnally in destructor since they are created in the constructor 2018-02-15 18:49:15 +01:00
f4exb
67e664ef06 Fixed memory leak with handling of DSPSignalNotification message in modulators and demodulators. Removed reference to unused PIDController class 2018-02-14 20:11:36 +01:00
f4exb
e0d4860359 SSB demod: GUI: fixed agc disabled display 2018-02-11 23:30:03 +01:00
f4exb
bdb127e186 SSB demod: audio FIFO write: do the same as in AM demod 2018-02-11 21:55:11 +01:00
f4exb
b2df6af08d SSB Demod: enlarge size to make level meter ticks every 10 dB when minimum level is -120 dB 2018-02-10 19:05:46 +01:00
f4exb
4d5376ac7b SSB demod: start level meter at -120 dB when in 24 bit mode 2018-02-10 05:43:11 +01:00
f4exb
c744615b3a SSB demod: set minimum squelch threshold to -120 dB with constant 2018-02-09 08:42:28 +01:00
f4exb
6ad04e66b9 SSB demod: lower the squelch limit to -110 dB 2018-02-09 06:53:24 +01:00
f4exb
0d9540fb0a NFM demod: fix after RTP transmission removal 2018-02-06 02:08:38 +01:00
f4exb
69a382a12c Revert "NFM demod: GUI button and setting to use RTP over UDP for copy to audio"
This reverts commit 2beba446f3.
2018-02-06 02:01:22 +01:00
f4exb
44552e26ef Revert "AM demod: implemented use RTP protocol for audio over UDP"
This reverts commit 9cf57f5aca.
2018-02-06 01:18:35 +01:00