From f8b635b97275a1f515f3d1b0c5f0f024d2583272 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 14 Jan 2020 20:46:31 +1000 Subject: [PATCH] Update backend notes for Emscripten. Emscripten no longer supports the -std=c* and -ansi compiler flags. --- examples/build/ma_build_examples_emscripten.bat | 2 +- miniaudio.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/build/ma_build_examples_emscripten.bat b/examples/build/ma_build_examples_emscripten.bat index 80a3aad0..d93fd383 100644 --- a/examples/build/ma_build_examples_emscripten.bat +++ b/examples/build/ma_build_examples_emscripten.bat @@ -1 +1 @@ -emcc ../simple_playback_emscripten.c -o ../bin/simple_playback_emscripten.html -s WASM=0 -std=c89 -ansi -Wall \ No newline at end of file +emcc ../simple_playback_emscripten.c -o ../bin/simple_playback_emscripten.html -s WASM=0 -Wall \ No newline at end of file diff --git a/miniaudio.h b/miniaudio.h index 69c3e632..5ad9b7c2 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -320,6 +320,7 @@ UWP Web Audio / Emscripten ---------------------- +- You cannot use -std=c* compiler flags, nor -ansi. This only applies to the Emscripten build. - The first time a context is initialized it will create a global object called "miniaudio" whose primary purpose is to act as a factory for device objects. - Currently the Web Audio backend uses ScriptProcessorNode's, but this may need to change later as they've been deprecated.