| 1 | /** API Functions for creating instances of Csound Opcodes as |
| 2 | * individual unit generators. UGEN's should also be extensible |
| 3 | * by host languages at runtime. */ |
| 4 | |
| 5 | typedef struct { |
| 6 | CSOUND* csound; |
| 7 | INSDS* insds; |
| 8 | OENTRY* oentry; |
| 9 | void* data; |
| 10 | int (*init)(void* data); |
| 11 | int (*perform)(void* data); |
| 12 | int (*destroy)(void* data); |
| 13 | } UGEN; |
| 14 | |
| 15 | UGEN* ugen_new(CSOUND*, OENTRY*); |
| 16 | bool ugen_set_output(UGEN*, int index, void* arg); |
| 17 | bool ugen_set_input(UGEN*, int index, void* arg); |
| 18 | |
| 19 | bool ugen_delete(UGEN*); |