OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
hydra.cpp File Reference
#include "hydra.h"
#include "dlscollection.h"
#include "tsf.h"

Go to the source code of this file.

Macros

#define TSF_IMPLEMENTATION
 
#define TSF_STATIC
 

Enumerations

enum  { kTerminatorSampleLength =46 }
 

Functions

static bool compValue (const tsf_hydra_phdr &a, const tsf_hydra_phdr &b)
 
static bool compValue (const tsf_hydra_shdr &a, const tsf_hydra_shdr &b)
 
static bool compValue (const tsf_hydra_pbag &a, const tsf_hydra_pbag &b)
 
static bool compValue (const tsf_hydra_pmod &a, const tsf_hydra_pmod &b)
 
static bool compValue (const tsf_hydra_pgen &a, const tsf_hydra_pgen &b)
 
static bool compValue (const tsf_hydra_inst &a, const tsf_hydra_inst &b)
 
static bool compValue (const tsf_hydra_ibag &a, const tsf_hydra_ibag &b)
 
static bool compValue (const tsf_hydra_imod &a, const tsf_hydra_imod &b)
 
static bool compValue (const tsf_hydra_igen &a, const tsf_hydra_igen &b)
 
template<class T >
static bool comp (const T *a, const T *b, int n, size_t vn)
 
static tsf_hydra_phdr mkPhdr (const DlsCollection::Instrument &instr, uint16_t index)
 
static tsf_hydra_phdr mkPhdr (const char *presetName, uint16_t index)
 
static tsf_hydra_pbag mkPbag (uint16_t genNdx, uint16_t modNdx)
 
static tsf_hydra_pgen mkPgen (uint16_t genOper, uint16_t wordAmount)
 
static tsf_hydra_inst mkInst (const char *instName, uint16_t instBagNdx)
 
static tsf_hydra_ibag mkIbag (uint16_t instGenNdx, uint16_t instModNdx)
 
struct tsf_hydra_igen mkIgen (uint16_t op, uint16_t lo, uint16_t hi)
 
struct tsf_hydra_igen mkIgen (uint16_t op, uint16_t u16)
 

Macro Definition Documentation

◆ TSF_IMPLEMENTATION

#define TSF_IMPLEMENTATION

Definition at line 5 of file hydra.cpp.

◆ TSF_STATIC

#define TSF_STATIC

Definition at line 6 of file hydra.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kTerminatorSampleLength 

Definition at line 20 of file hydra.cpp.

Function Documentation

◆ comp()

template<class T >
static bool comp ( const T *  a,
const T *  b,
int  n,
size_t  vn 
)
static

Definition at line 85 of file hydra.cpp.

◆ compValue() [1/9]

static bool compValue ( const tsf_hydra_ibag &  a,
const tsf_hydra_ibag &  b 
)
static

Definition at line 72 of file hydra.cpp.

◆ compValue() [2/9]

static bool compValue ( const tsf_hydra_igen &  a,
const tsf_hydra_igen &  b 
)
static

Definition at line 80 of file hydra.cpp.

◆ compValue() [3/9]

static bool compValue ( const tsf_hydra_imod &  a,
const tsf_hydra_imod &  b 
)
static

Definition at line 76 of file hydra.cpp.

◆ compValue() [4/9]

static bool compValue ( const tsf_hydra_inst &  a,
const tsf_hydra_inst &  b 
)
static

Definition at line 68 of file hydra.cpp.

◆ compValue() [5/9]

static bool compValue ( const tsf_hydra_pbag &  a,
const tsf_hydra_pbag &  b 
)
static

Definition at line 49 of file hydra.cpp.

◆ compValue() [6/9]

static bool compValue ( const tsf_hydra_pgen &  a,
const tsf_hydra_pgen &  b 
)
static

Definition at line 64 of file hydra.cpp.

◆ compValue() [7/9]

static bool compValue ( const tsf_hydra_phdr &  a,
const tsf_hydra_phdr &  b 
)
static

Definition at line 24 of file hydra.cpp.

◆ compValue() [8/9]

static bool compValue ( const tsf_hydra_pmod &  a,
const tsf_hydra_pmod &  b 
)
static

Definition at line 55 of file hydra.cpp.

◆ compValue() [9/9]

static bool compValue ( const tsf_hydra_shdr &  a,
const tsf_hydra_shdr &  b 
)
static

Definition at line 35 of file hydra.cpp.

◆ mkIbag()

static tsf_hydra_ibag mkIbag ( uint16_t  instGenNdx,
uint16_t  instModNdx 
)
static

Definition at line 135 of file hydra.cpp.

◆ mkIgen() [1/2]

struct tsf_hydra_igen mkIgen ( uint16_t  op,
uint16_t  lo,
uint16_t  hi 
)

Definition at line 142 of file hydra.cpp.

◆ mkIgen() [2/2]

struct tsf_hydra_igen mkIgen ( uint16_t  op,
uint16_t  u16 
)

Definition at line 152 of file hydra.cpp.

◆ mkInst()

static tsf_hydra_inst mkInst ( const char *  instName,
uint16_t  instBagNdx 
)
static

Definition at line 128 of file hydra.cpp.

◆ mkPbag()

static tsf_hydra_pbag mkPbag ( uint16_t  genNdx,
uint16_t  modNdx 
)
static

Definition at line 114 of file hydra.cpp.

◆ mkPgen()

static tsf_hydra_pgen mkPgen ( uint16_t  genOper,
uint16_t  wordAmount 
)
static

Definition at line 121 of file hydra.cpp.

◆ mkPhdr() [1/2]

static tsf_hydra_phdr mkPhdr ( const char *  presetName,
uint16_t  index 
)
static

Definition at line 107 of file hydra.cpp.

◆ mkPhdr() [2/2]

static tsf_hydra_phdr mkPhdr ( const DlsCollection::Instrument instr,
uint16_t  index 
)
static

Definition at line 95 of file hydra.cpp.