From c429178758ded3fddb7a7da44045da6e88e5239d Mon Sep 17 00:00:00 2001 From: Peter Salomonsen Date: Wed, 5 Apr 2023 18:42:40 +0000 Subject: [PATCH] start method is needed for tests --- .gitignore | 3 ++- .gitpod.yml | 1 + templates/wasm/player.wat | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4eb45e6..a7c6dea 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ actual_output/ node_modules sointu-server -temp_song_file.* \ No newline at end of file +temp_song_file.* +wabt-* diff --git a/.gitpod.yml b/.gitpod.yml index 00753b9..6847f3e 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -8,6 +8,7 @@ tasks: - init: | wget https://github.com/WebAssembly/wabt/releases/download/1.0.32/wabt-1.0.32-ubuntu.tar.gz tar -xvzf wabt-1.0.32-ubuntu.tar.gz + sudo cp wabt-1.0.32/bin/* /usr/bin sudo apt install nasm diff --git a/templates/wasm/player.wat b/templates/wasm/player.wat index b1614fa..0a84667 100644 --- a/templates/wasm/player.wat +++ b/templates/wasm/player.wat @@ -880,7 +880,7 @@ (export "render_128_samples" (func $render_128_samples)) (export "update_voices" (func $su_update_voices)) -;; (start $render) ;; we run render automagically when the module is instantiated +(start $render) ;; we run render automagically when the module is instantiated (func $render (param) {{- if .Output16Bit }} (local $channel i32) {{- end }}