#include <gr_sync_block.h>
#include <string>
#include <alsa/asoundlib.h>
#include <stdexcept>
Go to the source code of this file.
Define Documentation
#define ALSA_PCM_NEW_HW_PARAMS_API |
#define ALSA_PCM_NEW_SW_PARAMS_API |
Function Documentation
audio_alsa_sink_sptr audio_alsa_make_sink |
( |
int |
sampling_rate, |
|
|
const std::string |
device_name = "" , |
|
|
bool |
ok_to_block = true |
|
) |
| |
make an alsa audio sink.
- Parameters:
-
sampling_rate | sampling rate in Hz |
device_name | ALSA pcm device name, e.g., "hw:0,0" |
ok_to_block | (currently ignored) |