Skip to content

File driver-alsa.cc

FileList > ase > driver-alsa.cc

  • #include "driver.hh"
  • #include "datautils.hh"
  • #include "platform.hh"
  • #include "internal.hh"
  • #include <limits.h>
  • #include <atomic>
  • #include <cmath>

Macros

Type Name
define ALSAQUIET (expr) ({ silence_error_handler++; auto __ret_ = (expr); silence_error_handler--; __ret_; })
define MDEBUG (...) Ase::debug ("alsa", "MIDI: " __VA_ARGS__)
define PDEBUG (...) Ase::debug ("alsa", "PCM: " __VA_ARGS__)
define WITH_MIDI_POLL 0
define alsa_alloca0 (struc) ({ struc##_t *ptr = (struc##_t*) alloca (struc##_sizeof()); memset (ptr, 0, struc##_sizeof()); ptr; })
define return_error (reason, aerror, ERRMEMB)

Macro Definition Documentation

define ALSAQUIET

#define ALSAQUIET (
    expr
) ({ silence_error_handler++; auto __ret_ = (expr); silence_error_handler--; __ret_; })

define MDEBUG

#define MDEBUG (
    ...
) Ase::debug ("alsa", "MIDI: " __VA_ARGS__)

define PDEBUG

#define PDEBUG (
    ...
) Ase::debug ("alsa", "PCM: " __VA_ARGS__)

define WITH_MIDI_POLL

#define WITH_MIDI_POLL 0

define alsa_alloca0

#define alsa_alloca0 (
    struc
) ({ struc##_t *ptr = (struc##_t*) alloca (struc##_sizeof()); memset (ptr, 0, struc##_sizeof()); ptr; })

define return_error

#define return_error (
    reason,
    aerror,
    ERRMEMB
) do {    \
    const Error __ase_error = ase_error_from_errno (-aerror, Ase::Error::ERRMEMB); \
    Ase::debug ("alsa", "%s: %s: %s", alsadev_, reason,                 \
                ase_error_blurb (__ase_error));                         \
    return __ase_error;                                                 \
  } while (0)


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/driver-alsa.cc