Skip to content

Commit

Permalink
Michael Gogins fix for csound.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Nov 24, 2017
1 parent 175477b commit 80da781
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions architecture/csound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,30 @@ class CSUI : public UI
/*******************BEGIN ARCHITECTURE SECTION (part 2/2)***************/

struct dataspace {
OPDS h; /* basic attributes */
MYFLT* aout[1+FAUST_OUTPUTS]; /* output buffers */
MYFLT* ain[1+FAUST_INPUTS]; /* input buffers */
MYFLT* ktl[1+FAUST_ACTIVES]; /* controls */
OPDS h; /* basic attributes */
#if (FAUST_OUTPUTS > 0) /* omit 0 size array */
MYFLT* aout[FAUST_OUTPUTS]; /* output buffers */
#endif
#if (FAUST_INPUTS > 0) /* omit 0 size array */
MYFLT* ain[FAUST_INPUTS]; /* input buffers */
#endif
#if (FAUST_ACTIVES > 0) /* omit 0 size array */
MYFLT* ktl[FAUST_ACTIVES]; /* controls */
#endif
dsp* DSP; /* the Faust generated object */
CSUI* interface; /* do the mapping between CSound controls and DSP fields */
AUXCH dspmem; /* aux memory allocated once to store the DSP object */
AUXCH intmem; /* aux memory allocated once to store the interface object */
/* Dummies to satisfy the compiler for "zero sized" arrays. */
#if (FAUST_OUTPUTS == 0)
MYFLT* aout[1];
#endif
#if (FAUST_INPUTS == 0)
MYFLT* ain[1];
#endif
#if (FAUST_ACTIVES == 0)
MYFLT* ktl[1];
#endif
};

/**
Expand Down

0 comments on commit 80da781

Please sign in to comment.