drummer/drummer.h
Arnaud G. GIBERT 5dfe9feb17 - Add kit load status suport
- Optimize kit sample loading
- Normalize some macro and constant naming
2022-04-21 01:27:08 +02:00

132 lines
3.5 KiB
C

/*---------------------------------------------------------------------------------*/
/* Includes */
/*---------------------------------------------------------------------------------*/
#ifndef _DRUMMER_H_
#define _DRUMMER_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include <math.h>
#include <libgen.h>
#include <glob.h>
#include <node.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <sndfile.h>
#include <samplerate.h>
/*----------------------------------------------------------------------------*/
/* Global definitions */
/*----------------------------------------------------------------------------*/
typedef short DRT_Boolean;
#define DRD_FALSE ( DRT_Boolean) 0
#define DRD_TRUE ( DRT_Boolean) 1
#define DRD_NO 'n'
#define DRD_YES 'y'
#define DR_MAX(A,B) (((A) < (B)) ? (B) : (A))
#define DR_MIN(A,B) (((A) > (B)) ? (B) : (A))
#define DRD_SAMPLE_RATE_DEFAULT 44100
/*----------------------------------------------------------------------------*/
/* Status definition */
/*----------------------------------------------------------------------------*/
typedef short DRT_Status;
#define DRS_OK ( DRT_Status) 0
#define DRS_KO ( DRT_Status) 1
#define DRS_NO_IDENT ( DRT_Status) -2
#define DRS_BAD_FORMAT ( DRT_Status) -3
#define DRS_ROLLBACK ( DRT_Status) -4
#define DRS_NO_DATA ( DRT_Status) 3
#define DRS_SIGNAL ( DRT_Status) 4
/*---------------------------------------------------------------------------------*/
/* DRT_Base */
/*---------------------------------------------------------------------------------*/
typedef int DRT_SampleRate;
typedef struct DRT_Base
{
NDT_Root *Kit_DS_Ptr;
DRT_SampleRate SampleRate;
} DRT_Base;
/*----------------------------------------------------------------------------*/
/* Prototypes */
/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* DR_Init */
/*----------------------------------------------------------------------------*/
DRT_Status DR_Init( DRT_Base *);
/*----------------------------------------------------------------------------*/
/* DeInit */
/*----------------------------------------------------------------------------*/
DRT_Status DR_DeInit( DRT_Base *);
/*----------------------------------------------------------------------------*/
/* main */
/*----------------------------------------------------------------------------*/
/* ArgC: argument number */
/* ArgV: Argument tab */
/*----------------------------------------------------------------------------*/
int main( int, char **);
/*----------------------------------------------------------------------------*/
#include <datastruct.h>
#include <lv2_plugin.h>
#endif