Marsyas  0.5.0-beta1
Namespaces | Defines | Variables
/Users/jleben/code/marsyas/src/marsyas/common_header.h File Reference
#include <marsyas/types.h>
#include <marsyas/MrsLog.h>
#include <cstdio>
#include <sys/types.h>
#include <complex>
#include <limits>
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  Marsyas

Defines

#define DEPRECATED(func)   func
#define MARSYAS_ALIGN(X)   alignas(X)
#define MARSYAS_ASSERTS
#define MRS_MESSAGES_OFF   MrsLog::messages_off_ = true;
#define MRS_MESSAGES_ON   MrsLog::messages_off_ = false;
#define MRS_WARNINGS_OFF   MrsLog::warnings_off_ = true;
#define MRS_WARNINGS_ON   MrsLog::warnings_off_ = false;
#define MRSASSERT(f)   assert(f);
#define MRSERR(x)   {std::ostringstream oss; MrsLog::mrsErr((std::ostringstream&)(oss << x));}
#define MRSWARN(x)   {std::ostringstream oss; MrsLog::mrsWarning((std::ostringstream&)(oss << x));}
#define PCM_FMAXINT   2147483647.0f
#define PCM_FMAXSHRT   32767.0f
#define PCM_MAXINT   2147483647
#define PCM_MAXSHRT   32767

Variables

const mrs_string EMPTYSTRING = "MARSYAS_EMPTY"
const mrs_natural FFT_FORWARD = 1
const mrs_natural FFT_INVERSE = 0
const mrs_natural MAXNATURAL = std::numeric_limits<mrs_natural>::max()
const mrs_real MAXREAL = std::numeric_limits<mrs_real>::max()
const mrs_natural MINNATURAL = std::numeric_limits<mrs_natural>::min()
const mrs_real MINREAL = std::numeric_limits<mrs_real>::min()
const mrs_natural MRS_DEFAULT_SLICE_NOBSERVATIONS = 1
const mrs_natural MRS_DEFAULT_SLICE_NSAMPLES = 512
const mrs_real MRS_DEFAULT_SLICE_SRATE = 22050.0
const mrs_real PI = 3.14159265358979323846
const mrs_real TWOPI = 6.28318530717958647692

Detailed Description

This file should:

Definition in file common_header.h.


Define Documentation

#define DEPRECATED (   func)    func

Definition at line 93 of file common_header.h.

#define MARSYAS_ALIGN (   X)    alignas(X)

Definition at line 101 of file common_header.h.

#define MARSYAS_ASSERTS

Definition at line 70 of file common_header.h.

#define MRS_MESSAGES_OFF   MrsLog::messages_off_ = true;

Definition at line 81 of file common_header.h.

#define MRS_MESSAGES_ON   MrsLog::messages_off_ = false;

Definition at line 82 of file common_header.h.

#define MRS_WARNINGS_OFF   MrsLog::warnings_off_ = true;

Definition at line 79 of file common_header.h.

#define MRS_WARNINGS_ON   MrsLog::warnings_off_ = false;

Definition at line 80 of file common_header.h.

#define MRSASSERT (   f)    assert(f);

Definition at line 73 of file common_header.h.

#define MRSERR (   x)    {std::ostringstream oss; MrsLog::mrsErr((std::ostringstream&)(oss << x));}

Definition at line 75 of file common_header.h.

#define MRSWARN (   x)    {std::ostringstream oss; MrsLog::mrsWarning((std::ostringstream&)(oss << x));}

Definition at line 77 of file common_header.h.

#define PCM_FMAXINT   2147483647.0f

Definition at line 67 of file common_header.h.

#define PCM_FMAXSHRT   32767.0f

Definition at line 65 of file common_header.h.

#define PCM_MAXINT   2147483647

Definition at line 66 of file common_header.h.

#define PCM_MAXSHRT   32767

Definition at line 64 of file common_header.h.