summaryrefslogtreecommitdiff
path: root/gr-audio/lib/alsa
Commit message (Collapse)AuthorAgeFilesLines
* global: Replace stdio logging with loggerDavid Winter2021-10-211-6/+4
| | | | | | | This commit replaces many uses of std::c{out,err} and printf with the appropriate GR_LOG_* directives. Signed-off-by: David Winter <david.winter@analog.com>
* modules: include boost/format where usedMarcus Müller2021-09-073-0/+4
| | | | | | | | | | | | | | | | | | | 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>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-192-2/+2
| | | | | | | | | | | | | | | | | | | | 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>
* gr-audio: revise alsa default nperiodsduggabe2020-12-172-2/+2
|
* gr-audio: revise nperiods in gr-audio-alsa.confduggabe2020-12-171-1/+1
|
* gr-audio: revise nperiods in gr-audio-alsa.confduggabe2020-12-171-1/+1
|
* build: Remove clang unused variable warnings.Ron Economos2020-12-071-3/+2
|
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-032-6/+6
|
* audio/alsa: Remove manual memory managementThomas Habets2020-09-225-142/+171
|
* audio: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-132-16/+20
| | | | | | | | | | | | 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-011-1/+1
| | | | | | | | | | | | | | | | | | | 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
|
* alsa_sink: fix always true checkValerii Zapodovnikov2020-01-181-1/+1
| | | It is int snd_pcm_nonblock(snd_pcm_t *pcm, int nonblock)
* clang-format: Ordering all the includesMarcus Müller2019-08-095-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1099/+1075
|
* cleanup: fix local includes in gr-audioAndrej Rode2019-02-013-7/+7
| | | | | | | 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.
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-314-4/+4
|\
| * cleanup: remove dynamic exception specificationsAndrej Rode2018-02-064-4/+4
| |
* | gr-audio: ALSA on non-Linux ALSA systemsA. Maitland Bottoms2018-03-272-4/+4
|/ | | | From the debian patch set
* prefs reader misparses '#' anywhere but start-of-line -> rm inline commentsMarcus Müller2016-05-111-2/+4
|
* gr-audio: use generic int types instead of gr_int*Jiří Pinkava2015-03-292-8/+8
|
* audio: Fixes string format bug in ALSA error messages.Volker Schroer2014-09-302-2/+2
| | | | Addresses issue #736.
* audio: modified the audio registration system.Tom Rondeau2014-08-132-32/+31
| | | | 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-071-1/+1
| | | | 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: switch default also device from hw:0,0 to default, Bug #551Tim O'Shea2013-06-053-4/+4
|
* audio: try a couple times before accepting that an alsa device is busyTim O'Shea2013-05-311-2/+8
|
* 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-292-20/+20
|
* analog: wip: name changes for alsa, oss, jack files.Tom Rondeau2013-02-116-9/+9
|
* audio: wip: conversion cont. Alsa building.Tom Rondeau2013-02-114-1057/+1069
|
* 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-60/+60
| | | | | | this in the future. The sed script was provided by Moritz Fischer.
* Remove some more warnings. I'm probably being a bit OCD about these ones, ↵Tom Rondeau2012-01-061-4/+2
| | | | but it makes the build output so much nicer...
* Merge branch 'maint'Tom Rondeau2011-10-251-8/+8
|\
| * audio_alsa_source : Fix warning on 32 bit builds.Philip Balister2011-10-071-8/+8
| | | | | | | | | | | | | | | | | | On machines where sizeof(long) = sizeof(int) the code for calculating scale factors produced an overflow warning. This change simplifies the code by eliminating the shift. The compiler should calculate the constant at compile time anyway. Signed-off-by: Philip Balister <philip@opensdr.com>
* | docs: adding doc directory, Doxygen page, and README for audio package.Tom Rondeau2011-10-092-0/+2
|/
* audio_alsa_sink : Fix warning on 32 bit builds.Philip Balister2011-10-031-8/+8
| | | | | | | | | On machines where sizeof(long) = sizeof(int) the code for calculating scale factors produced an overflow warning. This change simplifies the code by eliminating the shift. The compiler should calculate the constant at compile time anyway. Signed-off-by: Philip Balister <philip@opensdr.com>
* audio: fixing alsa source like we did for alsa sink before.Tom Rondeau2011-07-101-1/+7
|
* 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: register arches with priorities, ex: prefer alsa over ossJosh Blum2011-03-092-2/+2
|
* audio: moved alsa support files into subdirectoryJosh Blum2011-03-097-0/+1493