# Are there FMOD HTML5 w32 libs that can link with emscripten/WASM pthread-enabled code?

**URL:** https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811
**Category:** FMOD Engine
**Tags:** html5
**Created:** [April 16, 2025, 4:25am UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811 "2025-04-16T04:25:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![amillman](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@amillman](https://qa.fmod.com/u/amillman)
#### Post date: [April 16, 2025, 4:25am UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/1 "2025-04-16T04:25:35Z")

</div>

Hi! I was very happy to discover the HTML5 w32 libraries, and compiled some C++ code that uses FMOD into a (single-threaded) web page using emscripten, linking in the HTML5 w32 libraries, and it worked really well… thanks for that.

I’ve also managed to get some C++ multithreading calls working, configuring the server to support SharedArrayBuffer and enabling pthreads in emscripten. I’d like to use FMOD’s w32 libraries with that code, too, even if FMOD only supports operation on the main thread.

Since one of the emscripten/WASM requirements is that all code linked together has pthreads enabled, I’m wondering if there’s a build of those libraries that has pthreads enabled so I can link them in.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [April 22, 2025, 4:57am UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/2 "2025-04-22T04:57:46Z")

</div>

yes there is! Just not released yet.  
I have pthread support working and hopefully released in the next update. I am currently adding a W32 example myself to the example folder to show it working.

---

<div class="post-metadata">

### Author: ![r58playz](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@r58playz](https://qa.fmod.com/u/r58playz)
#### Post date: [May 3, 2025, 9:15pm UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/3 "2025-05-03T21:15:49Z")

</div>

Hey, is there an update on this? Currently I’m telling the linker to ignore WASM features with `-Wl,--no-check-features` and wrapping all FMOD functions with an autogenerated function that calls `emscripten_proxy_sync(emscripten_proxy_get_system_queue(), emscripten_main_runtime_thread_id(), ...)`. I’m pretty sure this is losing a lot of performance though and was hoping real threaded builds would fix it at least partially.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [May 4, 2025, 11:39pm UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/4 "2025-05-04T23:39:50Z")

</div>

hi if you would like some preview libs please write to [support@fmod.com](mailto:support@fmod.com) with the request

---

<div class="post-metadata">

### Author: ![bruckbent](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bruckbent](https://qa.fmod.com/u/bruckbent)
#### Post date: [May 10, 2025, 2:04am UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/5 "2025-05-10T02:04:19Z")

</div>

hello, are these builds released yet? i would appreciate it, thanks.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [May 12, 2025, 1:57am UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/6 "2025-05-12T01:57:45Z")

</div>

a new update has been commited for the next minor 2.03 release which shouldnt be far off.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [June 12, 2025, 12:42am UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/7 "2025-06-12T00:42:24Z")

</div>

hello 2.03.08 is out now with HTML5 pthread support. The docs will be updated shortly and have been rewritten to be more comprehensive regarding setup and libraries.

FMOD requires a window handle to start an AudioContext as well. If you are not starting fmod from the ‘main thread’ you can set FMOD.window and FMOD will use that instead.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [June 12, 2025, 4:38am UTC](https://qa.fmod.com/t/are-there-fmod-html5-w32-libs-that-can-link-with-emscripten-wasm-pthread-enabled-code/22811/8 "2025-06-12T04:38:28Z")

</div>

More information here [https://www.fmod.com/docs/2.03/api/platforms-html5.html](https://www.fmod.com/docs/2.03/api/platforms-html5.html)
