summaryrefslogtreecommitdiff
path: root/gr-audio/lib/portaudio
Commit message (Collapse)AuthorAgeFilesLines
* runtime: Custom Buffer/Accelerator Device Support - Milestone 2David Sorber2021-10-252-2/+2
| | | | | | | | | | | | | | | | | Completion of custom buffer/accelerator device support changes: * Improved custom buffer interface by removing awkward memory allocation functions from the block class * Increased flexibility for creating custom buffers by allowing creation of buffer_single_mapped subclasses * Fully incorporated data movement abstraction into the custom buffer interface and the runtime itself; accelerated blocks are no longer directly responsible for their own data movement * Zero copy back-to-back accelerated blocks are now supported (data no longer needs to be moved back to the host between each block) Signed-off-by: David Sorber <david.sorber@blacklynx.tech> Signed-off-by: Mike Mason <mike.mason@blacklynx.tech>
* runtime: Custom Buffer/Accelerator Device Support - Milestone 1David Sorber2021-10-254-2/+6
| | | | | | | | | | | | | | | Custom Buffer/Accelerator Device Support - Milestone 1 changes: * Refactored existing single mapped buffer code and created single mapped buffer abstraction; wrapping within single mapped buffers is handled explicitly by input blocked and output blocked callbacks that are called from block_executor * Added simple custom buffer allocation interface (NOTE: this interface will change for milestone 2) * Accelerated blocks are still responsible for data transfer but the custom buffer interface eliminates the double copy problem Signed-off-by: David Sorber <david.sorber@blacklynx.tech>
* modules: include boost/format where usedMarcus Müller2021-09-072-0/+2
| | | | | | | | | | | | | | | | | | | in the classic modules: audio blocks digital dtv fec fft filter qtgui trellis/fsm uhd video-sdl vocoder/freedv_rx 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 ssize_t, which is not standard C, and we're a C++ projectMarcus Müller2021-02-232-2/+2
| | | | | | Co-authored-by: Josh Morman <jmorman@perspectalabs.com> Signed-off-by: Josh Morman <jmorman@perspectalabs.com> Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* portaudio: fix unintentionally synchronous std::asyncMarcus Müller2021-02-091-1/+1
| | | | | | | | | | Note this classic (which I didn't do in ALSA back in the day, 'doh): If you don't assign your future coming from std::async to something, its destructor is instantly called, leading to the call effectively being blocking. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-194-6/+6
| | | | | | | | | | | | | | | | | | | | 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>
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-032-6/+6
|
* audio: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-134-96/+83
| | | | | | | | | | | | This is a bit special, in that audio systems tend to have their own ways of going wrong, and there's platform-specific development debugging infrastructure in there, which I intentionally did not touch. I did touch a few commented lines of code in the intention of, if you enable that line of logging, it should be consistent with the rest. There's copious amounts of untouched stderr-logging in `#if 0`-disabled code in OSX's infrastructure.
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-012-4/+4
| | | | | | | | | | | | | | | | | | | Most of this code is automated code changes: ``` set -e SUB="s/dummy/dummy/" for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do SUB="$SUB;s/boost::$i/std::$i/g" done SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g" SUB="$SUB;s^namespace boost^namespace std^g" find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB" ``` Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add `#include <algorithm>`.
* Update license header to SPDX formatdevnulling2020-01-276-78/+6
|
* gr-audio/portaudio_source: Fix lock acquisitionThomas Habets2020-01-021-1/+1
|
* clang-format: Ordering all the includesMarcus Müller2019-08-095-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-096-632/+633
|
* cleanup: fix local includes in gr-audioAndrej Rode2019-02-013-9/+9
| | | | | | | Previously all directories were in the include path which breaks for local includes in pointy brackets. This commit uses quotes for local includes in gr-audio now.
* cleanup: remove dynamic exception specificationsAndrej Rode2018-02-064-4/+4
|
* Comment typo fixing.luz.paz2018-02-032-3/+3
| | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* add io.h include for portaudio source/sinkJosh Blum2016-08-062-0/+8
| | | | | | The io.h include is conditional when _MSC_VER is defined. io.h is required under msvc to provide the ::write() call for the audio overflow and underflow terminal messages.
* MSVC-specific fixes for compatibilitygnieboer2016-05-302-0/+6
| | | | | | | | | | | | | | | | | | | * 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()
* audio: modified the audio registration system.Tom Rondeau2014-08-132-8/+10
| | | | Instead of static functions and macros, this just uses simple ifdefs in the code to register new audio components if cmake found them. The code is more complicated for the developer, if we ever add a new audio machine. But this allows us to use gr-audio in statically linked cases.
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-072-2/+2
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* audio: moved include dir to gnuradio/audioJohnathan Corgan2013-04-292-2/+2
|
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-294-28/+28
|
* gruel: moved gruel into subdirs of gnuradio-runtime.Tom Rondeau2013-04-014-13/+13
| | | | PMTs are handled slightly different and are installed into their own module and include dir.
* audio: wip: converting OSX audio to 3.7 style.Tom Rondeau2013-02-1311-1023/+1047
|
* audio: wip: moving audio to 3.7 style. Headers renamed and moved.Tom Rondeau2013-02-112-4/+4
|
* Removed whitespace and added dtools/bin/remove-whitespace as a tool to do ↵Tom Rondeau2012-04-136-43/+43
| | | | | | this in the future. The sed script was provided by Moritz Fischer.
* docs: adding doc directory, Doxygen page, and README for audio package.Tom Rondeau2011-10-092-2/+4
|
* audio: cleanup audio source/sink with virtual inheritanceJosh Blum2011-03-282-2/+2
| | | | | The audio implementations now inherit from sync block (as they used to). And the redundant constructor in audio source/sink has been removed.
* audio: added config checks for other audios, added jack and portJosh Blum2011-03-097-0/+1057