Open colinbdclark opened 2 years ago
We still need bindings for:
There are a handful of situations I haven't been able to figure out how to create workable Emscripten-compatible WebIDL bindings for:
struct sig_List {
void** items;
size_t capacity;
size_t length;
};
void sig_List_init(struct sig_List* self, void** items, size_t capacity);
typedef void (*sig_dsp_SignalEvaluator_evaluate)(
struct sig_dsp_SignalEvaluator* self);
struct sig_dsp_SignalEvaluator {
sig_dsp_SignalEvaluator_evaluate evaluate;
};
struct sig_dsp_SignalListEvaluator {
sig_dsp_SignalEvaluator_evaluate evaluate;
struct sig_List* signalList;
In these cases, I've chosen to omit members and not create bindings for functions.
Currently, Web Assembly support is limited to the core functions. The Signals can also be bound, but some research is needed on how to access and use the Emscripten function pointer table from JavaScript.
After that, it should be possible to create bindings that enable all the Signals to be accessed from JavaScript (and thus to run Signaletic in an AudioWorklet).