GNU Radio 3.6.5 C++ API

gr_audio_sink.h File Reference

#include <gr_audio_api.h>
#include <gr_sync_block.h>

Go to the source code of this file.

Classes

class  audio_sink
 Creates a sink from an audio device. More...

Functions

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

Function Documentation

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

Creates a sink 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