Files
miniaudio/tests
David Reid 661115f130 API CHANGE: Simplify API for device config initialization.
There is now only a single API for initializing a device config which
is mal_device_config_init() and takes the device type as it's only
parameter. By default this will use the device's native configuration.

The device ID is also set in the device config. The next commits will
be changing mal_device_init() to remove the device type and ID from the
parameter list since they are now specified in the config.
2019-01-12 16:04:28 +10:00
..
2018-03-18 21:37:07 +10:00
2018-03-25 13:57:42 +10:00
2019-01-05 13:13:33 +10:00
2018-07-07 09:32:55 +10:00
2019-01-12 11:04:11 +10:00
2018-03-18 21:37:07 +10:00

Building

Build and run these test from this folder. Example:

clear && ./mal_build_tests_linux && ./bin/mal_test_0

These tests load resources from hard coded paths which point to the "res" folder. These paths are based on the assumption that the current directory is where the build files are located.

Emscripten

On Windows, you need to move into this directory 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. Then, run the relevant batch file:

mal_build_tests_emscripten.bat

The output will be placed in the bin folder. If you have output WASM it may not work when running the web page locally. To test you can run with something like this:

emrun bin/mal_test_0_emscripten.html