diff options
Diffstat (limited to 'md/writeup/web_assembly_audio_with_fir_filter.md')
-rw-r--r-- | md/writeup/web_assembly_audio_with_fir_filter.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/md/writeup/web_assembly_audio_with_fir_filter.md b/md/writeup/web_assembly_audio_with_fir_filter.md index e732a62..654f51e 100644 --- a/md/writeup/web_assembly_audio_with_fir_filter.md +++ b/md/writeup/web_assembly_audio_with_fir_filter.md @@ -30,13 +30,13 @@ is passed as callback, while running main loop just on pc is no issue. But this change logic how main loop is invocated to make it compatible between platforms for emscripten main loop is passed as callback -``` +```c emscripten_set_main_loop(main_tick, 25, 1); ``` in usual case its can be run as -``` +```c while (quit = 0) { main_tick(); } @@ -47,7 +47,7 @@ while (quit = 0) { Event handler in emscripten part are passing all events to SDL, and if there is text boxes they cannot be filled in, as main loop is handling events. -``` +```c //all events are handled and passed to this routine while (SDL_PollEvent(&event) != 0) { @@ -103,13 +103,13 @@ http://git.main.lv/cgit.cgi/WasmAudio.git ### Get source -``` +```bash git clone http://git.main.lv/cgit.cgi/WasmAudio.git/ ``` ### Build Linux -``` +```bash cd Build make ``` @@ -120,7 +120,7 @@ Open with XCode ### Build Web assembly -``` +```bash cd Build make emcc ``` |