diff --git a/examples/build/README.md b/examples/build/README.md index 7a3aa85d..4b38a6e7 100644 --- a/examples/build/README.md +++ b/examples/build/README.md @@ -9,7 +9,7 @@ On Windows, you need to move into the build and run emsdk_env.bat from a command 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 + 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: diff --git a/miniaudio.h b/miniaudio.h index eb1a0ff2..b1fa0341 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -28680,6 +28680,7 @@ static ma_result ma_context_get_device_info__webaudio(ma_context* pContext, ma_d MA_ZERO_MEMORY(pDeviceInfo->id.webaudio, sizeof(pDeviceInfo->id.webaudio)); /* Only supporting default devices for now. */ + (void)pDeviceID; if (deviceType == ma_device_type_playback) { ma_strncpy_s(pDeviceInfo->name, sizeof(pDeviceInfo->name), MA_DEFAULT_PLAYBACK_DEVICE_NAME, (size_t)-1); } else {