Files
miniaudio/examples
David Reid 8a7a65c271 API CHANGE: Replace ma_sine_wave with ma_waveform.
The ma_waveform API is a more general API supporting different waveform
including sine, square, triangle and sawtooth.
2020-02-18 20:46:36 +10:00
..
2018-04-29 17:21:26 +10:00
2020-02-10 19:05:13 +10:00
2020-02-09 14:54:58 +10:00
2020-02-09 14:54:58 +10:00
2020-02-03 20:20:43 +10:00
2019-05-05 19:03:26 +10:00
2020-02-09 14:54:58 +10:00
2020-02-03 20:20:43 +10:00
2019-05-05 19:03:26 +10:00

To compile these examples, cd into the "build" directory and run the applicable build script. Executables will be placed in the "bin" directory.

cd build
./ma_build_examples_linux

Then you can run executables like this:

../bin/simple_playback my_sound.wav

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. Then, run the relevant batch file:

ma_build_examples_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/simple_playback_emscripten.html