prototyp.h

Go to the documentation of this file.
00001 /*
00002     prototyp.h:
00003 
00004     Copyright (C) 1991-2005 Barry Vercoe, John ffitch
00005 
00006     This file is part of Csound.
00007 
00008     The Csound Library is free software; you can redistribute it
00009     and/or modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2.1 of the License, or (at your option) any later version.
00012 
00013     Csound is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with Csound; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00021     02111-1307 USA
00022 */
00023                                                         /*  PROTOTYP.H  */
00024 #if defined(__BUILDING_LIBCSOUND) && !defined(_CSOUND_PROTO_H)
00025 #define _CSOUND_PROTO_H
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 void    cscore_(CSOUND *);
00032 void    *mmalloc(CSOUND *, size_t);
00033 void    *mcalloc(CSOUND *, size_t);
00034 void    *mrealloc(CSOUND *, void *, size_t);
00035 void    mfree(CSOUND *, void *);
00036 void    csoundAuxAlloc(CSOUND *, long, AUXCH *), auxchfree(CSOUND *, INSDS *);
00037 void    fdrecord(CSOUND *, FDCH *), fdclose(CSOUND *, FDCH *);
00038 void    fdchclose(CSOUND *, INSDS *);
00039 CS_PRINTF2  void    synterr(CSOUND *, const char *, ...);
00040 CS_NORETURN CS_PRINTF2  void    csoundDie(CSOUND *, const char *, ...);
00041 CS_PRINTF2  int     csoundInitError(CSOUND *, const char *, ...);
00042 CS_PRINTF2  int     csoundPerfError(CSOUND *, const char *, ...);
00043 CS_PRINTF2  void    csoundWarning(CSOUND *, const char *, ...);
00044 CS_PRINTF2  void    csoundDebugMsg(CSOUND *, const char *, ...);
00045 CS_PRINTF2  void    csoundErrorMsg(CSOUND *, const char *, ...);
00046 void    csoundErrMsgV(CSOUND *, const char *, const char *, va_list);
00047 CS_NORETURN void    csoundLongJmp(CSOUND *, int retval);
00048 void    putop(CSOUND *, TEXT *);
00049 void    rdorchfile(CSOUND *), otran(CSOUND *);
00050 char    argtyp(CSOUND *, char *);
00051 TEXT    *getoptxt(CSOUND *, int *);
00052 int     express(CSOUND *, char *);
00053 int     lgexist(CSOUND *, const char *);
00054 void    oload(CSOUND *);
00055 void    reverbinit(CSOUND *);
00056 void    dispinit(CSOUND *);
00057 int     init0(CSOUND *);
00058 void    scsort(CSOUND *, FILE *, FILE *);
00059 int     scxtract(CSOUND *, FILE *, FILE *, FILE *);
00060 int     rdscor(CSOUND *, EVTBLK *);
00061 int     musmon(CSOUND *);
00062 void    RTLineset(CSOUND *);
00063 FUNC    *csoundFTFind(CSOUND *, MYFLT *);
00064 FUNC    *csoundFTFindP(CSOUND *, MYFLT *);
00065 FUNC    *csoundFTnp2Find(CSOUND *, MYFLT *);
00066 void    cs_beep(CSOUND *);
00067 MYFLT   intpow(MYFLT, long);
00068 void    list_opcodes(CSOUND *, int);
00069 char    *getstrformat(int format);
00070 int     sfsampsize(int sf_format);
00071 char    *type2string(int type);
00072 int     type2csfiletype(int type, int encoding);
00073 int     sftype2csfiletype(int type);
00074 void    rewriteheader(SNDFILE *ofd);
00075 int     readOptions(CSOUND *, FILE *, int);
00076 int     argdecode(CSOUND *, int, char **);
00077 void    remove_tmpfiles(CSOUND *);
00078 void    add_tmpfile(CSOUND *, char *);
00079 void    xturnoff(CSOUND *, INSDS *);
00080 void    xturnoff_now(CSOUND *, INSDS *);
00081 int     insert_score_event(CSOUND *, EVTBLK *, double);
00082 MEMFIL  *ldmemfile(CSOUND *, const char *);
00083 MEMFIL  *ldmemfile2(CSOUND *, const char *, int);
00084 void    rlsmemfiles(CSOUND *);
00085 int     delete_memfile(CSOUND *, const char *);
00086 char    *csoundTmpFileName(CSOUND *, char *, const char *);
00087 void    *SAsndgetset(CSOUND *, char *, void *, MYFLT *, MYFLT *, MYFLT *, int);
00088 int     getsndin(CSOUND *, void *, MYFLT *, int, void *);
00089 void    *sndgetset(CSOUND *, void *);
00090 void    dbfs_init(CSOUND *, MYFLT dbfs);
00091 int     csoundLoadExternals(CSOUND *);
00092 SNDMEMFILE  *csoundLoadSoundFile(CSOUND *, const char *name, SF_INFO *sfinfo);
00093 int     PVOCEX_LoadFile(CSOUND *, const char *fname, PVOCEX_MEMFILE *p);
00094 void    print_opcodedir_warning(CSOUND *);
00095 int     check_rtaudio_name(char *fName, char **devName, int isOutput);
00096 int     csoundLoadOpcodeDB(CSOUND *, const char *);
00097 void    csoundDestroyOpcodeDB(CSOUND *);
00098 int     csoundCheckOpcodePluginFile(CSOUND *, const char *);
00099 int     csoundLoadAllPluginOpcodes(CSOUND *);
00100 int     csoundLoadAndInitModule(CSOUND *, const char *);
00101 void    csoundNotifyFileOpened(CSOUND *, const char *, int, int, int);
00102 
00112 int csoundRegisterDeinitCallback(CSOUND *, void *p,
00113                                  int (*func)(CSOUND *, void *));
00114 
00123 int csoundRegisterResetCallback(CSOUND *, void *userData,
00124                                 int (*func)(CSOUND *, void *));
00125 
00130 char *csoundGetOpcodeName(void *p);
00131 
00135 int csoundGetInputArgCnt(void *p);
00136 
00143 unsigned long csoundGetInputArgAMask(void *p);
00144 
00151 unsigned long csoundGetInputArgSMask(void *p);
00152 
00156 char *csoundGetInputArgName(void *p, int n);
00157 
00161 int csoundGetOutputArgCnt(void *p);
00162 
00169 unsigned long csoundGetOutputArgAMask(void *p);
00170 
00177 unsigned long csoundGetOutputArgSMask(void *p);
00178 
00182 char *csoundGetOutputArgName(void *p, int n);
00183 
00190 int csoundSetReleaseLength(void *p, int n);
00191 
00198 MYFLT csoundSetReleaseLengthSeconds(void *p, MYFLT n);
00199 
00205 int csoundGetMidiChannelNumber(void *p);
00206 
00212 MCHNBLK *csoundGetMidiChannel(void *p);
00213 
00219 int csoundGetMidiNoteNumber(void *p);
00220 
00226 int csoundGetMidiVelocity(void *p);
00227 
00231 int csoundGetReleaseFlag(void *p);
00232 
00239 double csoundGetOffTime(void *p);
00240 
00247 MYFLT *csoundGetPFields(void *p);
00248 
00252 int csoundGetInstrumentNumber(void *p);
00253 
00258 const char *csoundExternalMidiErrorString(CSOUND *, int errcode);
00259 
00267 int csoundAppendOpcodes(CSOUND *, const OENTRY *opcodeList, int n);
00268 
00272 int csoundYield(CSOUND *);
00273 
00278 int csoundAddUtility(CSOUND *, const char *name,
00279                                int (*UtilFunc)(CSOUND *, int, char **));
00280 
00285 int csoundSetUtilityDescription(CSOUND *, const char *utilName,
00286                                           const char *utilDesc);
00287 
00293 int csoundDeleteAllConfigurationVariables(CSOUND *);
00294 
00295 #ifdef __cplusplus
00296 }
00297 #endif
00298 
00299 #endif  /* __BUILDING_LIBCSOUND && !_CSOUND_PROTO_H */
00300 

Generated on Tue Apr 14 11:00:49 2009 for Csound and CsoundAC by  doxygen 1.5.8