summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/wavfile_source_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* modules: include boost/format where usedMarcus Müller2021-09-071-0/+1
| | | | | | | | | | | | | | | | | | | 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>
* gr-blocks: Fix wavfile sink and source block performance issues.Ron Economos2020-09-251-14/+23
| | | | | | | Calling libsndfile sf_read/write_float() for every sample created too much overhead. sf_read/write_float() is now called every 1024 samples for the wavfile source block and every 8192 samples for the wavfile sink block.
* gr-blocks: Transition the WAV sink and source blocks to libsndfile.Ron Economos2020-09-011-64/+53
| | | | Compressed input and output with FLAC and Ogg Vorbis now supported.
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-1/+1
| | | | | | | | | | | | | | 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
* blocks: refactor and reorganize WAV internalsjapm482020-04-141-22/+13
| | | | | | | | This includes the following: - WAV header parameters are now stored in a struct. - do not assume fixed position of data chunk (useful for appending). - use INT{8,18}T_MAX/MIN. - 0|NULL -> nullptr.
* blocks: fix wavfile testjapm482020-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | The example test_16bit_1chunk.wav was invalid even if the tests passed. This file caused errors in ffprobe (from ffmpeg) and wave (from python standard lib). This is what changed: - LIST chunk corrected, according to spec. Previously `ffprobe` complained: [wav @ 0x5653f92d6dc0] too short LIST tag - File size corrected. Previously the test assumed that the resulting headers to be identical, this is now taken into account. Because of this, python's `wave` did not work. This is added to the test. Parser is updated to check file size. - Tests that did not close opened files were corrected. References: [1] https://sites.google.com/site/musicgapi/technical-documents/wav-file-format [2] http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Docs/riffmci.pdf
* blocks: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-131-7/+10
|
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* clang-format: Ordering all the includesMarcus Müller2019-08-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-091-116/+115
|
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-6/+6
|
* blocks: moved tagged_file_sink and wavfile source/sink/base to gr-blocks.Tom Rondeau2013-03-091-0/+174