LMMS
Loading...
Searching...
No Matches
basics.h File Reference
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
#include <ladspa.h>

Go to the source code of this file.

Classes

struct  PortInfo
class  Plugin

Macros

#define _GNU_SOURCE   1
#define _USE_GNU   1
#define __USE_ISOC99   1
#define __USE_ISOC9X   1
#define _ISOC99_SOURCE   1
#define _ISOC9X_SOURCE   1
#define _USE_MATH_DEFINES
#define BOUNDED   (LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE)
#define INTEGER   LADSPA_HINT_INTEGER
#define LOG   LADSPA_HINT_LOGARITHMIC
#define TOGGLE   LADSPA_HINT_TOGGLED
#define DEFAULT_0   LADSPA_HINT_DEFAULT_0
#define DEFAULT_1   LADSPA_HINT_DEFAULT_1
#define DEFAULT_100   LADSPA_HINT_DEFAULT_100
#define DEFAULT_440   LADSPA_HINT_DEFAULT_440
#define DEFAULT_MIN   LADSPA_HINT_DEFAULT_MINIMUM
#define DEFAULT_LOW   LADSPA_HINT_DEFAULT_LOW
#define DEFAULT_MID   LADSPA_HINT_DEFAULT_MIDDLE
#define DEFAULT_HIGH   LADSPA_HINT_DEFAULT_HIGH
#define DEFAULT_MAX   LADSPA_HINT_DEFAULT_MAXIMUM
#define INPUT   LADSPA_PORT_INPUT
#define OUTPUT   LADSPA_PORT_OUTPUT
#define AUDIO   LADSPA_PORT_AUDIO
#define CONTROL   LADSPA_PORT_CONTROL
#define HARD_RT   LADSPA_PROPERTY_HARD_RT_CAPABLE
#define TEN_TO_THE_SIXTH   1000000
#define MIN_GAIN   .000001 /* -120 dB */
#define NOISE_FLOOR   .00000000000005 /* -266 dB */
#define TRAP
#define CAPS   "C* "

Typedefs

typedef int8_t int8
typedef uint8_t uint8
typedef int16_t int16
typedef uint16_t uint16
typedef int32_t int32
typedef uint32_t uint32
typedef int64_t int64
typedef uint64_t uint64
typedef LADSPA_Data sample_t
typedef unsigned long ulong
typedef void(* sample_func_t) (sample_t *, int, sample_t, sample_t)

Functions

void store_func (sample_t *s, int i, sample_t x, sample_t gain)
void adding_func (sample_t *s, int i, sample_t x, sample_t gain)
template<class X, class Y>
X min (X x, Y y)
template<class X, class Y>
X max (X x, Y y)
template<class T>
clamp (T value, T lower, T upper)
static float frandom ()
bool is_denormal (float &f)
bool is_denormal (double &f)

Macro Definition Documentation

◆ __USE_ISOC99

#define __USE_ISOC99   1

◆ __USE_ISOC9X

#define __USE_ISOC9X   1

◆ _GNU_SOURCE

#define _GNU_SOURCE   1

◆ _ISOC99_SOURCE

#define _ISOC99_SOURCE   1

◆ _ISOC9X_SOURCE

#define _ISOC9X_SOURCE   1

◆ _USE_GNU

#define _USE_GNU   1

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

◆ AUDIO

#define AUDIO   LADSPA_PORT_AUDIO

◆ BOUNDED

◆ CAPS

#define CAPS   "C* "

◆ CONTROL

#define CONTROL   LADSPA_PORT_CONTROL

◆ DEFAULT_0

#define DEFAULT_0   LADSPA_HINT_DEFAULT_0

◆ DEFAULT_1

#define DEFAULT_1   LADSPA_HINT_DEFAULT_1

◆ DEFAULT_100

#define DEFAULT_100   LADSPA_HINT_DEFAULT_100

◆ DEFAULT_440

#define DEFAULT_440   LADSPA_HINT_DEFAULT_440

◆ DEFAULT_HIGH

#define DEFAULT_HIGH   LADSPA_HINT_DEFAULT_HIGH

◆ DEFAULT_LOW

#define DEFAULT_LOW   LADSPA_HINT_DEFAULT_LOW

◆ DEFAULT_MAX

#define DEFAULT_MAX   LADSPA_HINT_DEFAULT_MAXIMUM

◆ DEFAULT_MID

#define DEFAULT_MID   LADSPA_HINT_DEFAULT_MIDDLE

◆ DEFAULT_MIN

#define DEFAULT_MIN   LADSPA_HINT_DEFAULT_MINIMUM

◆ HARD_RT

#define HARD_RT   LADSPA_PROPERTY_HARD_RT_CAPABLE

◆ INPUT

#define INPUT   LADSPA_PORT_INPUT

◆ INTEGER

#define INTEGER   LADSPA_HINT_INTEGER

◆ LOG

#define LOG   LADSPA_HINT_LOGARITHMIC

◆ MIN_GAIN

#define MIN_GAIN   .000001 /* -120 dB */

◆ NOISE_FLOOR

#define NOISE_FLOOR   .00000000000005 /* -266 dB */

◆ OUTPUT

#define OUTPUT   LADSPA_PORT_OUTPUT

◆ TEN_TO_THE_SIXTH

#define TEN_TO_THE_SIXTH   1000000

◆ TOGGLE

#define TOGGLE   LADSPA_HINT_TOGGLED

◆ TRAP

#define TRAP

Typedef Documentation

◆ int16

typedef int16_t int16

◆ int32

typedef int32_t int32

◆ int64

typedef int64_t int64

◆ int8

typedef int8_t int8

◆ sample_func_t

typedef void(* sample_func_t) (sample_t *, int, sample_t, sample_t)

◆ sample_t

◆ uint16

typedef uint16_t uint16

◆ uint32

typedef uint32_t uint32

◆ uint64

typedef uint64_t uint64

◆ uint8

typedef uint8_t uint8

◆ ulong

typedef unsigned long ulong

Function Documentation

◆ adding_func()

void adding_func ( sample_t * s,
int i,
sample_t x,
sample_t gain )
inline

◆ clamp()

template<class T>
T clamp ( T value,
T lower,
T upper )

◆ frandom()

float frandom ( )
inlinestatic

◆ is_denormal() [1/2]

bool is_denormal ( double & f)
inline

◆ is_denormal() [2/2]

bool is_denormal ( float & f)
inline

◆ max()

template<class X, class Y>
X max ( X x,
Y y )

◆ min()

template<class X, class Y>
X min ( X x,
Y y )

◆ store_func()

void store_func ( sample_t * s,
int i,
sample_t x,
sample_t gain )
inline