libpsynth 0.2.1
Namespaces | Defines | Functions
/home/raskolnikov/dev/psynth/trunk/src/psynth/io/alsa_raw_output.cpp File Reference

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"
Include dependency graph for alsa_raw_output.cpp:

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.")

Detailed Description

Time-stamp: <2011-06-28 15:39:08 raskolnikov>

Author:
Juan Pedro BolĂ­var Puente <raskolnikov@es.gnu.org>
Date:
Fri Mar 4 19:06:57 2011

Alsa raw output implementation.


Define Documentation

#define PSYNTH_ALSA_CHECK (   fun,
  except 
)
Value:
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"