#include <gr_sync_block.h>
#include <string>
#include <alsa/asoundlib.h>
#include <stdexcept>
Go to the source code of this file.
Classes | |
class | audio_alsa_source |
audio source using ALSA More... | |
Defines | |
#define | ALSA_PCM_NEW_HW_PARAMS_API |
#define | ALSA_PCM_NEW_SW_PARAMS_API |
Typedefs | |
typedef boost::shared_ptr < audio_alsa_source > | audio_alsa_source_sptr |
Functions | |
audio_alsa_source_sptr | audio_alsa_make_source (int sampling_rate, const std::string dev="", bool ok_to_block=true) |
Make an ALSA audio source. |
#define ALSA_PCM_NEW_HW_PARAMS_API |
#define ALSA_PCM_NEW_SW_PARAMS_API |
audio_alsa_source_sptr audio_alsa_make_source | ( | int | sampling_rate, | |
const std::string | dev = "" , |
|||
bool | ok_to_block = true | |||
) |
Make an ALSA audio source.
sampling_rate | sampling rate | |
dev | ALSA pcm device name, e.g., "hw:0,0" | |
ok_to_block | (currently ignored) |