Commit 000180ba authored by David Reid's avatar David Reid

Silence a warning on the Emscripten build.

parent 869a6ec6
......@@ -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:
......
......@@ -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 {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment