Skip to content

Commit

Permalink
Improvements to Audio Worklets support for Web Audio.
Browse files Browse the repository at this point in the history
Public issue #597
  • Loading branch information
mackron committed Aug 5, 2023
1 parent 5390786 commit 810cdc2
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 176 deletions.
4 changes: 4 additions & 0 deletions examples/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ path like "C:\emsdk\emsdk_env.bat". Note that PowerShell doesn't work for me for
emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html
emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html -s WASM=0 -Wall -Wextra

To compile with support for Audio Worklets:

emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html -DMA_ENABLE_AUDIO_WORKLETS -sAUDIO_WORKLET=1 -sWASM_WORKERS=1 -sASYNCIFY

If you output WASM it may not work when running the web page locally. To test you can run with something
like this:

Expand Down
Loading

0 comments on commit 810cdc2

Please sign in to comment.