Skip to content

Commit

Permalink
Merge pull request #349 from GoogleChromeLabs/348-empscripten-failure
Browse files Browse the repository at this point in the history
Fix Emscripten runtime failure
  • Loading branch information
hoch authored Nov 2, 2023
2 parents 6b3e732 + 878423c commit b3b0851
Show file tree
Hide file tree
Showing 4 changed files with 1,897 additions and 2,283 deletions.
2 changes: 1 addition & 1 deletion src/_data/build_info.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"3.1.0","revision":"fce9086","lastUpdated":"2023-07-10","copyrightYear":2023}
{"version":"3.1.0","revision":"7201485","lastUpdated":"2023-11-02","copyrightYear":2023}
1 change: 1 addition & 0 deletions src/audio-worklet/design-pattern/wasm-supersaw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build: $(DEPS)
-s SINGLE_FILE=1 \
-s WASM=1 \
-s WASM_ASYNC_COMPILATION=0 \
-s EXPORTED_FUNCTIONS="['_malloc']" \
-o ./synth.wasm.js \
./synth_src/synth_bind.cc $(DEPS)

Expand Down
16 changes: 16 additions & 0 deletions src/audio-worklet/design-pattern/wasm-supersaw/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# How to use wasm-supersaw example

Unlike other AudioWorklet examples in this repository, this examples needs
an additional step to build and compile. Follow the steps below:

1. Install Emscripten in your development setup. Follow the instruction:
https://emscripten.org/docs/getting_started/downloads.html

2. Run `emcc -v` to confirm the Emscripten installation and its version. This
example needs 3.1.48 or later to work correctly. (See
[this issue](https://github.com/GoogleChromeLabs/web-audio-samples/issues/348)
for details)

3. In the terminal, run `make` to build the WASM file.

4. Serve `index.html` file in the directoy.
Loading

0 comments on commit b3b0851

Please sign in to comment.