Initial Commit
This commit is contained in:
25
thirdparty/miniaudio-0.11.24/tests/_build/README.md
vendored
Normal file
25
thirdparty/miniaudio-0.11.24/tests/_build/README.md
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
Building
|
||||
========
|
||||
Build and run from this directory. Example:
|
||||
|
||||
gcc ../test_deviceio/ma_test_deviceio.c -o bin/test_deviceio -ldl -lm -lpthread -Wall -Wextra -Wpedantic -std=c89
|
||||
./bin/test_deviceio
|
||||
|
||||
Output files will be placed in the "res/output" folder.
|
||||
|
||||
|
||||
Emscripten
|
||||
----------
|
||||
On Linux, do `source ~/emsdk/emsdk_env.sh` before compiling.
|
||||
|
||||
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. Example:
|
||||
|
||||
emcc ../test_emscripten/ma_test_emscripten.c -o bin/test_emscripten.html -sAUDIO_WORKLET=1 -sWASM_WORKERS=1 -sASYNCIFY -DMA_ENABLE_AUDIO_WORKLETS -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/test_emscripten.html
|
||||
|
||||
If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command.
|
||||
Reference in New Issue
Block a user