mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
25885e4163
Public issue https://github.com/mackron/miniaudio/issues/597.
19 lines
863 B
Markdown
19 lines
863 B
Markdown
Examples
|
|
--------
|
|
gcc ../simple_playback.c -o bin/simple_playback -ldl -lm -lpthread
|
|
gcc ../simple_playback.c -o bin/simple_playback -ldl -lm -lpthread -Wall -Wextra -Wpedantic -std=c89
|
|
|
|
Emscripten
|
|
----------
|
|
On Windows, you need to move into the build and run emsdk_env.bat from a command prompt using an absolute
|
|
path like "C:\emsdk\emsdk_env.bat". Note that PowerShell doesn't work for me for some reason. Examples:
|
|
|
|
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
|
|
|
|
If you output WASM it may not work when running the web page locally. To test you can run with something
|
|
like this:
|
|
|
|
emrun ./bin/simple_playback_sine.html
|
|
|
|
If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command. |