|
libpsynth 0.2.1
|
Time-stamp: <2011-06-28 15:39:18 raskolnikov> More...
#include <cassert>#include <fcntl.h>#include <sys/soundcard.h>#include <sys/stat.h>#include <sys/ioctl.h>#include <unistd.h>#include <cstring>#include "base/logger.hpp"#include "base/throw.hpp"#include "base/scope_guard.hpp"#include "oss_raw_output.hpp"
Namespaces | |
| namespace | psynth |
| namespace | psynth::io |
Defines | |
| #define | PSYNTH_MODULE_NAME "psynth.io.oss" |
| #define | PSYNTH_OSS_CHECK(fun, except) |
Functions | |
| psynth::io::PSYNTH_DEFINE_ERROR (oss_error) | |
| psynth::io::PSYNTH_DEFINE_ERROR_WHAT (oss_open_error,"Error while opening OSS device.") | |
| psynth::io::PSYNTH_DEFINE_ERROR_WHAT (oss_param_error,"Invalid parameter for OSS device.") | |
Time-stamp: <2011-06-28 15:39:18 raskolnikov>
OSS raw output implementation.
| #define PSYNTH_MODULE_NAME "psynth.io.oss" |
| #define PSYNTH_OSS_CHECK | ( | fun, | |
| except | |||
| ) |
do { \ int err = fun; \ if (err == -1) { \ PSYNTH_THROW (except) << "Problem opening (" \ << device \ << ::strerror (errno); \ } \ } while (0)
1.7.4