Debian Codegraph @

examples/build/README.md

raw symbols SCIP
1 Examples
2 --------
3 gcc ../simple_playback.c -o bin/simple_playback -ldl -lm -lpthread
4 gcc ../simple_playback.c -o bin/simple_playback -ldl -lm -lpthread -Wall -Wextra -Wpedantic -std=c89
5
6 Emscripten
7 ----------
8 On Windows, you need to move into the build and run emsdk_env.bat from a command prompt using an absolute
9 path like "C:\emsdk\emsdk_env.bat". Note that PowerShell doesn't work for me for some reason. Examples:
10
11 emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html
12 emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html -s WASM=0 -Wall -Wextra
13
14 To compile with support for Audio Worklets:
15
16 emcc ../simple_playback_sine.c -o bin/simple_playback_sine.html -DMA_ENABLE_AUDIO_WORKLETS -sAUDIO_WORKLET=1 -sWASM_WORKERS=1 -sASYNCIFY
17
18 If you output WASM it may not work when running the web page locally. To test you can run with something
19 like this:
20
21 emrun ./bin/simple_playback_sine.html
22
23 If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command.