File: stdopcod.h

package info (click to toggle)
csound 1%3A6.18.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 63,220 kB
  • sloc: ansic: 192,643; cpp: 14,149; javascript: 9,654; objc: 9,181; python: 3,376; java: 3,337; sh: 1,840; yacc: 1,255; xml: 985; perl: 635; lisp: 411; tcl: 341; lex: 217; makefile: 128
file content (126 lines) | stat: -rw-r--r-- 4,266 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
    stdopcod.h:

    Copyright (c) 205 Istvan Varga

    This file is part of Csound.

    The Csound Library is free software; you can redistribute it
    and/or modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    Csound is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with Csound; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    02110-1301 USA
*/

#ifndef CSOUND_STDOPCOD_H
#define CSOUND_STDOPCOD_H

//#include "csdl.h"
#include "csoundCore.h"
#include <sndfile.h>


#include "interlocks.h"

/* file structure for fout opcodes */

struct fileinTag {
    SNDFILE     *file;        /* Used in audio cases */
    FILE        *raw;         /* Only used if text file */
    void        *fd;          /* file handle returned by CSOUND::FileOpen */
    char        *name;        /* short name */
    int32_t         do_scale;     /* non-zero if 0dBFS scaling should be applied */
    uint32      refCount;   /* reference count, | 0x80000000 if close reqd */
};

typedef struct VCO2_TABLE_ARRAY_  VCO2_TABLE_ARRAY;
typedef struct _atsbufread        ATSBUFREAD;

typedef struct STDOPCOD_GLOBALS_ {
    CSOUND      *csound;
    /* fout.c */
    struct fileinTag  *file_opened;
    int32_t         file_max;
    int32_t         file_num;
    int32        fout_kreset;
   /* MYFLT       *buf;
      int32_t         buf_size; */ /* VL - now using per instance buffer */
    /* oscbnk.c */
    uint32      oscbnk_seed;
    int32       rnd31i_seed;
    int32_t         denorm_seed;
    int32_t         vco2_nr_table_arrays;
    VCO2_TABLE_ARRAY  **vco2_tables;
    /* ugnorman.c */
    ATSBUFREAD  *atsbufreadaddr;
    int32_t         swapped_warning;
    /* locsig.c */
    void        *locsigaddr;
    /* space.c */
    void        *spaceaddr;
    /* gab/gab.c */
    MYFLT       *tb_ptrs[16];       /* Left here while the rest is implemented */
    MYFLT       *tb[16];       /* gab: updated */
    int32_t         tb_ixmode[16]; /* gab: added */
    int32       tb_size[16];   /* gab: added */
} STDOPCOD_GLOBALS;

extern int32_t ambicode_init_(CSOUND *);
extern int32_t bbcut_init_(CSOUND *);
extern int32_t biquad_init_(CSOUND *);
extern int32_t butter_init_(CSOUND *);
extern int32_t clfilt_init_(CSOUND *);
extern int32_t cross2_init_(CSOUND *);
extern int32_t dam_init_(CSOUND *);
extern int32_t dcblockr_init_(CSOUND *);
extern int32_t filter_init_(CSOUND *);
extern int32_t flanger_init_(CSOUND *);
extern int32_t follow_init_(CSOUND *);
extern int32_t fout_init_(CSOUND *);
extern int32_t freeverb_init_(CSOUND *);
extern int32_t ftconv_init_(CSOUND *);
extern int32_t ftgen_init_(CSOUND *);
extern int32_t gab_gab_init_(CSOUND *);
extern int32_t gab_vectorial_init_(CSOUND *);
extern int32_t grain_init_(CSOUND *);
extern int32_t locsig_init_(CSOUND *);
extern int32_t lowpassr_init_(CSOUND *);
extern int32_t metro_init_(CSOUND *);
extern int32_t midiops2_init_(CSOUND *);
extern int32_t midiops3_init_(CSOUND *);
extern int32_t newfils_init_(CSOUND *);
extern int32_t nlfilt_init_(CSOUND *);
extern int32_t oscbnk_init_(CSOUND *);
extern int32_t pluck_init_(CSOUND *);
extern int32_t repluck_init_(CSOUND *);
extern int32_t reverbsc_init_(CSOUND *);
extern int32_t seqtime_init_(CSOUND *);
extern int32_t sndloop_init_(CSOUND *);
extern int32_t sndwarp_init_(CSOUND *);
extern int32_t space_init_(CSOUND *);
extern int32_t spat3d_init_(CSOUND *);
extern int32_t syncgrain_init_(CSOUND *);
extern int32_t ugens7_init_(CSOUND *);
extern int32_t ugens9_init_(CSOUND *);
extern int32_t ugensa_init_(CSOUND *);
extern int32_t uggab_init_(CSOUND *);
extern int32_t ugmoss_init_(CSOUND *);
extern int32_t ugnorman_init_(CSOUND *);
extern int32_t ugsc_init_(CSOUND *);
extern int32_t
wave_terrain_init_(CSOUND *);
extern int32_t
wter2_init_(CSOUND *);


#endif  /* CSOUND_STDOPCOD_H */