summaryrefslogtreecommitdiff
path: root/gr-vocoder/lib
Commit message (Collapse)AuthorAgeFilesLines
* classic modules: use common precompiled headersMarcus Müller2021-07-191-0/+4
| | | | | | | This commit contains all the additions to gr-*/lib/CMakeLists.txt applicable to modules already present in 3.8. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* vocoder/freedv_rx: include boost/format where usedMarcus Müller2021-06-221-0/+1
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* global: remove unused <iomanip>, fix other includes in affected files when ↵Marcus Müller2021-06-172-2/+0
| | | | | | obvious Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* global: remove iostream from all files not use cout|cerr|cin|clogMarcus Müller2021-06-172-2/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* Removed unused <cassert>Marcus Müller2021-01-281-1/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-1915-15/+15
| | | | | | | | | | | | | | | | | | | | run /usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*' -fix .. from build directory. Then, clang-format -i $(git diff --name-only origin/master) to clang-format changed files. Then, refresh all header hashes in pybind bindings (*/python/bindings/*.cc) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* build: Remove clang unused variable warnings.Ron Economos2020-12-074-23/+3
|
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-0318-37/+37
|
* Add `override` for common virtual function overridesThomas Habets2020-11-0318-20/+20
| | | | | | | | | | Mostly done with: ``` find -name "*_impl.h" | xargs sed -i -r '/(void forecast|int work|int general_work|bool check_topology)\(/{:back /\)/b nxt;N;b back;:nxt s/\)$|\)(;)/) override\1/g}' ``` Then I removed an incorrect `work` that this found.
* vocoder: add text message output to FreeDV demodulatorClayton Smith2020-10-202-26/+18
| | | | | | | | | | | | The FreeDV protocol includes a low bit rate text stream which is used to transmit information such as call sign and location. GNU Radio's FreeDV demodulator block sets up a callback to receive this text data, but the callback currently does nothing. Here I've added an optional message output to the block. It collects characters until a carriage return is encountered, then outputs a string. I've updated the sample flow graph to print these messages using the Message Debug block.
* vocoder: allow input & output rates to differClayton Smith2020-10-202-11/+21
| | | | | | | The input & output rates of the FreeDV modulator aren't necessarily the same. In particular, the 2400A and 2400B modes have an input rate of 8000 sps and an output rate of 48000 sps. To allow for arbitrary input & output rates, I've changed freedv_tx_ss from sync_block to block.
* vocoder: refactor get_next_tx_char callbackClayton Smith2020-10-162-34/+16
| | | | | | | | | | | | | The get_next_tx_char callback in the FreeDV modulator block is one of the last places where snprintf is used. I've eliminated it by using C++ string methods instead. This also removes the 79-character limit. This change also fixes a bug where the last character of the message was not transmitted. Lastly, I refactored the callback to be a static member function, eliminating the need for a separate structure to hold the callback state.
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-3018-24/+23
| | | | | | | | | | | | | | First batch of changes: ``` find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}' ``` Then: * Back out `sptr_magic.h` edits * Change some `friend` clauses * clang-format the whole thing * Update checksums in the pybind11 bindings files
* vocoder: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-131-5/+3
|
* Update license header to SPDX formatdevnulling2020-01-2739-507/+39
|
* Remove newlines from exception messagesThomas Habets2020-01-012-4/+4
|
* clang-format: Ordering all the includesMarcus Müller2019-08-097-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-0946-2481/+2285
|
* vocoder: Fix build on NetBSD.MBoerschig2019-03-242-2/+2
| | | | | | | There was an #ifdef missing in lib/thread/thread.cc and in gr-vocoder the include directive for gsm.h contains a gsm/ prefix. The cmake FindGSM.cmake looks for **/include/ and **/include/gsm anyways.
* gr-vocoder: update codec2 and freedv blocks.A. Maitland Bottoms2019-03-244-15/+96
| | | | | Update to add support for newer modes in codec2 0.8.1. Fixup grc blocks yml templates, update examples.
* cmake: Update to modern CMake usageAndrej Rode2019-03-042-84/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes using target based setting of includes and link libraries. This will transitively add the includes and linking flags to dependent targets. This is still a work in progress since only the dynamic libraries have been touched and not all of include_directories directives are gone yet. cmake: remove GR_INCLUDE_SUBDIRECTORY macro Previously this macro was used to inject subdirectories in the current CMake namespace. This is generally undesired and pollutes the current context. previously GNU Radio CMake had a non-default option ENABLE_STATIC_LIBS to build both, shared libraries and static libraries. This seems to be a construction taken over from autotools and serves no purpuose in CMake and complicates the library building. cmake: remove GR_LIBTOOL and la generation support This looks like it was primarily used to support projects using autotools, but comments state that the generated .la files aren't compatible with autotools anyway. cmake: Bump required CMake version to 3.8 UseSWIG cmake uses syntax which requires at least CMake 3.8 and is non-trivial to change
* Merge branch 'master' into nextMartin Braun2018-02-034-5/+5
|\
| * Comment typo fixing.luz.paz2018-02-0316-27/+27
| | | | | | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* | Merge branch 'master' into nextJohnathan Corgan2017-03-221-6/+0
|\| | | | | | | | | Conflicts: gr-wxgui/lib/CMakeLists.txt
| * cmake: add log4cpp to runtime includesBastian Bloessl2017-03-221-4/+0
| |
| * cmake: clean upBastian Bloessl2017-03-221-2/+0
| |
* | Get the FreeDV demodulator working.Clayton Smith2016-11-151-20/+11
| |
* | Convert tabs to spaces.Clayton Smith2016-11-154-33/+33
| |
* | gr-vocoder freedv blocksA. Maitland Bottoms2016-09-156-0/+446
| |
* | Merge remote-tracking branch 'github/nuke-cpack' into nextJohnathan Corgan2016-08-031-2/+2
|\ \ | | | | | | | | | | | | Conflicts: gr-vocoder/CMakeLists.txt
| * | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-2/+2
| |/ | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
* | gr-vocoder: remove embedded gsmA. Maitland Bottoms2016-06-2527-5480/+0
| |
* | gr-vocoder: gsm subcomponent using external gsm libraryA. Maitland Bottoms2016-06-253-75/+13
| |
* | gr-vocoder: remove embedded codec2A. Maitland Bottoms2016-06-2591-32378/+0
| |
* | gr-vocoder: codec2 subcomponent using external codec2 libraryA. Maitland Bottoms2016-06-251-74/+9
|/
* MSVC-specific fixes for compatibilitygnieboer2016-05-301-1/+1
| | | | | | | | | | | | | | | | | | | * Changed dtv_viterbi_decoder to use __GR_ATTR_ALIGNED macro for cross-compiler compatibility * Replace usleep() with boost equivalent for cross-compiler compatibility * Includes windows-specific headers for portaudio * Added macro to handle use of VLAs on non-C99 compilers (MSVC) using alloca to declare variable length arrays * Remove setting SO_LINGER option for the UDP source. SO_LINGER is not an applicable option for a UDP socket. Windows will throw an exception if set. Linux allows it to be set but does not use it. * VS 2013+ supports round()
* Revert "Fixes for ABI compliance checker"Johnathan Corgan2015-12-111-7/+0
| | | | This reverts commit 578fcb99217bdbc4501e620ade7665242f793c71.
* Fixes for ABI compliance checkerA. Maitland Bottoms2015-12-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | do not install obsolete headers Some header files in atsc and qtgui are installed, but have references to obsolete paths and are therefore uncompilable. These files should probably be removed from the checked-out source trees to complete the refactoring, but this patch merely omits them from the install step. This allows the abi-compliance-checker to run over the installed header files. codec2 embedding fixups Only use and install the embedded copy of codec2.h when using an embedded copy of the codec2 library. Use cmake to propagate conditional paths from lib directory to swig directory. make acc happy The abi-compliance-checker operates in installed headers. So sys_pri.h needs to look for gnuradio/realtime.h and be explicit about structure definitions. py_feval.h needs to explicitly include Python.h.
* Merge branch 'maint'Johnathan Corgan2014-08-291-26/+99
|\
| * vocoder: minor cleanup in library detectionJohnathan Corgan2014-08-291-15/+15
| |
| * Fix handling of GR_USE_SYSTEM_LIBGSM and GR_USE_SYSTEM_LIBCODEC2A. Maitland Bottoms2014-08-281-26/+99
| |
* | cmake: follow-up to previous mergeTom Rondeau2014-08-081-1/+0
| |
* | Merge branch 'maint'Tom Rondeau2014-08-081-1/+0
|\| | | | | | | | | | | Conflicts: gnuradio-runtime/CMakeLists.txt gnuradio-runtime/lib/controlport/CMakeLists.txt
| * controlport: removing use of ice for a controlport rpc.Tom Rondeau2014-08-081-1/+0
| | | | | | | | This effectively disables the use of ControlPort for now until we build in a new middleware layer. The ControlPort API and interfaces exist but will function as nops for now.
* | Merge branch 'maint'Johnathan Corgan2014-07-241-7/+7
|\|
| * coverity 1207185: vocoder: unitialized summed squared errorMarcus Müller2014-07-241-7/+7
| |
* | build: better support for static libs.Tom Rondeau2014-07-181-0/+12
|/ | | | | | Now builds shared libraries with ControlPort (if ControlPort is enableed). Static libs still without ControlPort. Added proper Option and output message in cmake for Static Libs on/off.
* Merge branch 'maint'Johnathan Corgan2014-07-081-0/+4
|\
| * Windows compatibility fixesNicholas Corgan2014-07-071-0/+4
| | | | | | | | | | * Fixed usage of Windows thread-naming API, changed minimum Windows version * Fixed MSVC usage of isnan, round
* | Merge branch 'maint'Tom Rondeau2014-07-0719-19/+19
|\|