GNU Radio 3.7.2 C++ API
|
The gnuradio audio component provides gr::audio::source and gr::audio::sink blocks. The audio blocks stream floating point samples to and from audio hardware.
The gr-audio component will be built automatically when gnuradio-runtime is enabled. Support for underlying audio architectures depends on OS and installed libraries. At the time of writing, gr-audio supports OSS, ALSA, Jack, Portaudio, Audiounit, and Winmm.
At runtime, gr-audio will automatically select from the available architectures. The user can override the selection via configuration file by setting "audio_module" to one of the following strings:
See gr-audio.conf for an example.
Import this package with:
See the Doxygen documentation for details about the blocks available in this package. A quick listing of the details can be found in Python after importing by using:
For an audio source, a typical OptionParser option and it's use looks like:
Similarly, an audio sink would have a typical OptionParser option and its use would look like: