Fix some errors with the Emscripten build.

This commit is contained in:
David Reid
2025-08-21 18:01:06 +10:00
parent ca3ba8c1a8
commit 747faa3390
2 changed files with 36 additions and 13 deletions
+9 -1
View File
@@ -650,7 +650,15 @@ int main(int argc, char** argv)
break;
}
ma_sleep(10);
/*
Can't sleep with Emscripten. Just skip the sleeping part in this case. I don't run this test for Emscripten
so it doesn't matter. Just fixing this for the sake of automated build tools.
*/
#ifndef __EMSCRIPTEN__
{
ma_sleep(10);
}
#endif
}
}