Silence a warning on the Emscripten build.

This commit is contained in:
David Reid
2020-03-07 10:16:53 +10:00
parent 869a6ec662
commit 000180baf4
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -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 {