Try fixing the Emscripten build.

This commit is contained in:
David Reid
2026-01-12 19:51:40 +10:00
parent 994ae48feb
commit 1adad94ef8
2 changed files with 12 additions and 4 deletions
@@ -46,10 +46,14 @@ static ma_result ma_vfs_debugging_read(ma_vfs* pVFS, ma_vfs_file file, void* pDs
ma_vfs_debugging* pDebuggingVFS = ma_vfs_debugging_cast(pVFS);
ma_result result;
/* Introduce artificial latency if requested. */
if (pDebuggingVFS->config.latencyInMilliseconds > 0) {
ma_sleep(pDebuggingVFS->config.latencyInMilliseconds);
/* Introduce artificial latency if requested. Ignored on Emscripten. */
#ifndef __EMSCRIPTEN__
{
if (pDebuggingVFS->config.latencyInMilliseconds > 0) {
ma_sleep(pDebuggingVFS->config.latencyInMilliseconds);
}
}
#endif
/*printf("READING\n");*/