diff options
Diffstat (limited to 'reduced_system_layer.c')
-rwxr-xr-x | reduced_system_layer.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/reduced_system_layer.c b/reduced_system_layer.c index 64b7cfb..a5e63e0 100755 --- a/reduced_system_layer.c +++ b/reduced_system_layer.c @@ -1613,18 +1613,6 @@ void p_render_frame(void) { p_render_frame_impl(); } - __attribute__((export_name("js_memset"))) void js_memset(void *dst, i32 val, u32 num) { - if (dst == NULL) return; - for (u32 i = 0; i < num; ++i) - ((u8 *) dst)[i] = (u8) val; -} - -__attribute__((export_name("js_memcpy"))) void js_memcpy(void *dst, void const *src, u32 num) { - if (dst == NULL || src == NULL) return; - for (u32 i = 0; i < num; ++i) - ((u8 *) dst)[i] = ((u8 const *) src)[i]; -} - __attribute__((export_name("js_main"))) void js_main(c8 *href) { main(1, &href); } @@ -1703,6 +1691,10 @@ __attribute__((export_name("js_keyup"))) void js_keyup(u32 key, u32 mod) { // // Web audio // +// TODO: Shared memory buffer +// https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory +// https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/port +// // ================================================================ #ifdef __wasm__ |