GNU Radio 3.5.1 C++ API
gr_audio_source.h File Reference
#include <gr_audio_api.h>
#include <gr_sync_block.h>
Include dependency graph for gr_audio_source.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  audio_source
 Creates a source from an audio device. More...

Functions

GR_AUDIO_API audio_source::sptr audio_make_source (int sampling_rate, const std::string device_name="", bool ok_to_block=true)

Function Documentation

GR_AUDIO_API audio_source::sptr audio_make_source ( int  sampling_rate,
const std::string  device_name = "",
bool  ok_to_block = true 
)

Creates a source from an audio device at a specified sample_rate. The specific audio device to use can be specified as the device_name parameter. Typical choices are:

  • pulse
  • hw:0,0
  • plughw:0,0
  • surround51
  • /dev/dsp