| 1 |
#include "csdl.h" |
| 2 |
#include <stdio.h> |
| 3 |
#include <stdlib.h> |
| 4 |
|
| 5 |
typedef struct { OPDS h; } NOOP; |
| 6 |
|
| 7 |
#define S sizeof(NOOP) |
| 8 |
|
| 9 |
|
| 10 |
static int32_t osc_unsupported_warning(CSOUND *csound, NOOP *p) { |
| 11 |
(void) csound->ErrorMsg(csound,Str("OSC opcodes are currently not supported in WASM %s\n"), ""); |
| 12 |
return CSOUND_ERROR; |
| 13 |
} |
| 14 |
|
| 15 |
static OENTRY OSC_localops[] = |
| 16 |
{{ "OSCsend_lo", S, 0, 3, "", "kSkSS*", |
| 17 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning }, |
| 18 |
{ "OSCinit", S, 0, 1, "i", "i", |
| 19 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning }, |
| 20 |
{ "OSCinitM", S, 0, 1, "i", "Si", |
| 21 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning }, |
| 22 |
{ "OSClisten", S,0, 3, "k", "iSS*", |
| 23 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning }, |
| 24 |
{ "OSClisten", S, 0, 3, "k", "iSS", |
| 25 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning }, |
| 26 |
{ "OSClisten", S,0, 3, "kk[]", "iSS", |
| 27 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning}, |
| 28 |
{ "OSCcount", S, 0, 3, "k", "", |
| 29 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning}, |
| 30 |
{ "OSCsend", S, 0, 3, "", "kSkSS*", |
| 31 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning}, |
| 32 |
{ "OSCbundle", S, 0, 3, "", "kSkS[]S[]k[][]o", |
| 33 |
(SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning, (SUBR)osc_unsupported_warning }}; |
| 34 |
|
| 35 |
int32_t unsupported_opdoces_init_(CSOUND *csound) { |
| 36 |
return csound->AppendOpcodes(csound, &(OSC_localops[0]), (int32_t) (sizeof(OSC_localops) / sizeof(OENTRY))); |
| 37 |
} |