1 /*
2 stdopcod.c:
3
4 Copyright (c) 2005 Istvan Varga
5
6 This file is part of Csound.
7
8 The Csound Library is free software; you can redistribute it
9 and/or modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 Csound is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with Csound; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 02110-1301 USA
22 */
23
24 #include "stdopcod.h"
25
26 /* PUBLIC int32_t csoundModuleCreate(CSOUND *csound)
27 {
28 (void) csound;
29 return 0;
30 }
31 */
32
stdopc_ModuleInit(CSOUND * csound)33 int32_t stdopc_ModuleInit(CSOUND *csound)
34 {
35 STDOPCOD_GLOBALS *p;
36 int32_t err = 0;
37
38 if (UNLIKELY(csound->stdOp_Env != NULL)) {
39 csound->ErrorMsg(csound, Str("stdopcod.c: error: globals already allocated"));
40 return CSOUND_ERROR;
41 }
42 csound->stdOp_Env = csound->Calloc(csound, sizeof(STDOPCOD_GLOBALS));
43
44 p = (STDOPCOD_GLOBALS*) csound->stdOp_Env;
45 p->csound = csound;
46 /* fout.c */
47 p->file_opened = (struct fileinTag*) NULL;
48 p->file_num = -1;
49 /*p->buf = (MYFLT*) NULL;*/
50 /* ugnorman.c */
51 p->atsbufreadaddr = NULL;
52 err |= ambicode_init_(csound);
53 err |= bbcut_init_(csound);
54 err |= biquad_init_(csound);
55 err |= butter_init_(csound);
56 err |= clfilt_init_(csound);
57 err |= cross2_init_(csound);
58 err |= dam_init_(csound);
59 err |= dcblockr_init_(csound);
60 err |= filter_init_(csound);
61 err |= flanger_init_(csound);
62 err |= follow_init_(csound);
63 err |= fout_init_(csound);
64 err |= freeverb_init_(csound);
65 err |= ftconv_init_(csound);
66 err |= ftgen_init_(csound);
67 err |= gab_gab_init_(csound);
68 err |= gab_vectorial_init_(csound);
69 err |= grain_init_(csound);
70 err |= locsig_init_(csound);
71 err |= lowpassr_init_(csound);
72 err |= metro_init_(csound);
73 err |= midiops2_init_(csound);
74 err |= midiops3_init_(csound);
75 err |= newfils_init_(csound);
76 err |= nlfilt_init_(csound);
77 err |= oscbnk_init_(csound);
78 err |= pluck_init_(csound);
79 err |= repluck_init_(csound);
80 err |= reverbsc_init_(csound);
81 err |= seqtime_init_(csound);
82 err |= sndloop_init_(csound);
83 err |= sndwarp_init_(csound);
84 err |= space_init_(csound);
85 err |= spat3d_init_(csound);
86 err |= syncgrain_init_(csound);
87 err |= ugens7_init_(csound);
88 err |= ugens9_init_(csound);
89 err |= ugensa_init_(csound);
90 err |= uggab_init_(csound);
91 err |= ugmoss_init_(csound);
92 err |= ugnorman_init_(csound);
93 err |= ugsc_init_(csound);
94 err |= wave_terrain_init_(csound);
95
96 return (err ? CSOUND_ERROR : CSOUND_SUCCESS);
97 }
98
99 /*
100 PUBLIC int32_t csoundModuleInfo(void)
101 {
102 return ((CS_APIVERSION << 16) + (CS_APISUBVER << 8) + (int32_t) sizeof(MYFLT));
103 }
104 */
105
106