|
libpsynth 0.2.1
|
Time-stamp: <2011-06-28 15:39:08 raskolnikov> More...
#include <limits>#include <algorithm>#include "base/logger.hpp"#include "base/throw.hpp"#include "base/scope_guard.hpp"#include "alsa_raw_output.hpp"
Namespaces | |
| namespace | psynth |
| namespace | psynth::io |
Defines | |
| #define | PSYNTH_MODULE_NAME "psynth.io.alsa" |
| #define | PSYNTH_ALSA_CHECK(fun, except) |
Functions | |
| psynth::io::PSYNTH_DEFINE_ERROR (alsa_error) | |
| psynth::io::PSYNTH_DEFINE_ERROR_WHAT (alsa_open_error,"Can not open device.") | |
| psynth::io::PSYNTH_DEFINE_ERROR_WHAT (alsa_start_error,"Can not start device.") | |
| psynth::io::PSYNTH_DEFINE_ERROR_WHAT (alsa_param_error,"Invalid parameter.") | |
Time-stamp: <2011-06-28 15:39:08 raskolnikov>
Alsa raw output implementation.
| #define PSYNTH_ALSA_CHECK | ( | fun, | |
| except | |||
| ) |
do { \ int err = fun; \ if (err < 0) { \ PSYNTH_THROW (except) << "Problem opening (" \ << device << "). " \ << snd_strerror (err); \ } \ } while (0)
| #define PSYNTH_MODULE_NAME "psynth.io.alsa" |
1.7.4