GNU Radio 3.7.1 C++ API
gr::audio::source Class Reference

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

#include <source.h>

Inheritance diagram for gr::audio::source:

List of all members.

Public Types

typedef boost::shared_ptr< sourcesptr

Static Public Member Functions

static sptr make (int sampling_rate, const std::string device_name="", bool ok_to_block=true)

Detailed Description

Creates a source from an audio device.


Member Typedef Documentation


Member Function Documentation

static sptr gr::audio::source::make ( int  sampling_rate,
const std::string  device_name = "",
bool  ok_to_block = true 
) [static]

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

The documentation for this class was generated from the following file: