csdl.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef CSOUND_CSDL_H
00025 #define CSOUND_CSDL_H
00026
00027 #ifdef __BUILDING_LIBCSOUND
00028 #undef __BUILDING_LIBCSOUND
00029 #endif
00030
00031 #include "csoundCore.h"
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036
00037
00038
00039 #undef Str
00040 #define Str(x) (csound->LocalizeString(x))
00041
00042 PUBLIC long csound_opcode_init(CSOUND *, OENTRY **);
00043 PUBLIC NGFENS *csound_fgen_init(CSOUND *);
00044
00045 PUBLIC int csoundModuleCreate(CSOUND *);
00046 PUBLIC int csoundModuleInit(CSOUND *);
00047 PUBLIC int csoundModuleDestroy(CSOUND *);
00048 PUBLIC const char *csoundModuleErrorCodeToString(int);
00049
00050 PUBLIC int csoundModuleInfo(void);
00051
00052 #define LINKAGE \
00053 PUBLIC long csound_opcode_init(CSOUND *csound, OENTRY **ep) \
00054 { (void) csound; *ep = localops; return (long) sizeof(localops); } \
00055 PUBLIC int csoundModuleInfo(void) \
00056 { return ((CS_APIVERSION << 16) + (CS_APISUBVER << 8) + (int) sizeof(MYFLT)); }
00057
00058 #define FLINKAGE \
00059 PUBLIC NGFENS *csound_fgen_init(CSOUND *csound) \
00060 { (void) csound; return localfgens; } \
00061 PUBLIC int csoundModuleInfo(void) \
00062 { return ((CS_APIVERSION << 16) + (CS_APISUBVER << 8) + (int) sizeof(MYFLT)); }
00063
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067
00068 #endif
00069