summaryrefslogtreecommitdiff
path: root/gr-audio/lib/osx
Commit message (Collapse)AuthorAgeFilesLines
* audio: osx: Replace boost::scoped_array with std::unique_ptr.Ryan Volz2021-12-101-2/+3
| | | | | | | This removes a use of boost and fixes the failing build (due to missing the boost::scoped_array header, how did this work before?). Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* global: Replace stdio logging with loggerDavid Winter2021-10-211-104/+126
| | | | | | | 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/+3
| | | | | | | | | | | | | | | | | | | 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>
* gr-audio: osx: Fix compilation.Ryan Volz2020-10-021-5/+5
|
* audio: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-133-116/+166
| | | | | | | | | | | | 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.
* replace boost endian check with cmakejapm482020-04-061-2/+1
|
* Update license header to SPDX formatdevnulling2020-01-277-91/+7
|
* Remove newlines from exception messagesThomas Habets2020-01-011-4/+4
|
* clang-format: Ordering all the includesMarcus Müller2019-08-092-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-097-2442/+2200
|
* audio: fix build on OSXMichael Dickens2019-04-213-3/+3
|
* Comment typo fixing.luz.paz2018-02-033-4/+4
| | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* Merge remote-tracking branch 'github/pr/1308' into maintJohnathan Corgan2017-05-092-4/+9
|\
| * audio: fix osx variety to work with debug (again).Michael Dickens2017-05-092-4/+9
| | | | | | | | Allow for internal or external specification of _OSX_*_DEBUG_ flags.
* | audio: fix use of 'memcpy' in OSX impl.Michael Dickens2017-04-171-1/+1
|/
* Spelling fixes throughout the tree.A. Maitland Bottoms2016-06-201-1/+1
|
* audio osx: use memcpy instead of bcopy, to be consistent with the rest of ↵Michael Dickens2015-03-311-4/+4
| | | | GNU Radio.
* audio osx: change copying of a UInt32 type into a string by using memcpy ↵Michael Dickens2015-03-311-7/+3
| | | | instead of a direct pointer manipulation, to make some newer compilers happy.
* audio: modified the audio registration system.Tom Rondeau2014-08-132-8/+8
| | | | 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-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).
* gr-audio OSX: fix casting of Int32 to char[] to a memcpy to make older GCC ↵Michael Dickens2014-06-271-6/+6
| | | | happy.
* gr-audio OSX: fix call to AudioHardwareRemovePropertyListener to match API.Michael Dickens2014-06-271-4/+2
|
* audio: osx: rename d_buffer_sample_count -> d_buffer_size_samples; truth in ↵Michael Dickens2014-04-242-11/+11
| | | | naming!
* whitespace onlyMichael Dickens2014-04-241-369/+369
|
* audio: osx audio fixesMichael Dickens2014-04-242-60/+173
| | | | | | | | | | | | - fix dequeue to return 3 when the requested number of items to dequeue is not the same as the actual number of items. fix comments to reflect this change as well as the actual input and output info for this variable. - fix comments. fix debug printouts to be consistent. - fix the AU callback to not throw, since it is not handled robustly by the OS routines that to the call. Add NOTE to this effect. Return better error codes when an issue arises. - correctly convert d_buffer_sample_count to int before using it. - when stopping: if waiting in ::work, signal the thread to wake up, in the hopes that it will correctly return and terminate. After stopping the AU, abort and reset buffers as well as clear our local knowledge about the amount of data in the queues.
* fix typo in getting default source (output) audio device name from gr::prefsMichael Dickens2014-03-071-1/+1
|
* fix gr-audio osx:Michael Dickens2014-03-078-1135/+2545
| | | | | | | | | | | | | | + use GNU Radio preferences file to set default input and output audio device, if provided; + use gr::logger for all non-debug messages; + case-insensitive string find with desired audio device name; + fixes buffer allocation bug with low sample rates; + allows using a specific (named) audio device, or the default; + handles the case when the selected audio device becomes unavailable (e.g., a USB stick is removed while in use); + if no audio device name is provided, uses the default audio device as found in System Preferences::Sound; + handles the case when the default audio device is in use, and the user changes that audio device in System Preferences::Sound, by internally resetting to use the newly selected audio device; + all non-Apple names are now lower_case, not CamelCase; + move osx_impl functions to gr::audio::osx, and use them correctly; + install osx_impl.h to expose gr::audio::osx functions, but iff OSX audio is enabled.
* 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-293-11/+11
|
* gruel: moved gruel into subdirs of gnuradio-runtime.Tom Rondeau2013-04-015-24/+24
| | | | PMTs are handled slightly different and are installed into their own module and include dir.
* audio: wip: osx patches verified on an OSX machine.Tom Rondeau2013-02-132-24/+24
|
* audio: wip: converting OSX audio to 3.7 style.Tom Rondeau2013-02-1310-1737/+1791
|
* audio: wip: moving audio to 3.7 style. Headers renamed and moved.Tom Rondeau2013-02-112-4/+4
|
* audio: switch to BOOST_BIG_ENDIAN macro in OSX audio hdrJosh Blum2012-06-291-1/+2
| | | | | The previous one didnt seem to be set by the build system. Perhaps this was lost in the transition to CMake?
* Removed whitespace and added dtools/bin/remove-whitespace as a tool to do ↵Tom Rondeau2012-04-136-41/+41
| | | | | | this in the future. The sed script was provided by Moritz Fischer.
* small tweaks to get stream sizes "more correct"Michael L Dickens2012-02-161-7/+7
|
* allow any input hardware audio rate; fix use of deprecated function ↵Michael Dickens2012-02-161-11/+60
| | | | 'AudioHardwareGetProperty'
* docs: adding doc directory, Doxygen page, and README for audio package.Tom Rondeau2011-10-092-0/+2
|
* 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: fixing class typo for OSX audio driver.Tom Rondeau2011-03-281-1/+1
|
* audio: re-adding circular_buffer.h for OSX build.Tom Rondeau2011-03-281-0/+315
|
* audio: high prio for platform specific audio osxJosh Blum2011-03-092-2/+2
|
* audio: added windows and osx audio source filesJosh Blum2011-03-095-0/+1685