Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How the Desktop OpenAL-Soft works in the browser using WebAssembly?
Forum Updated to NodeBB v4.3 + New Features

How the Desktop OpenAL-Soft works in the browser using WebAssembly?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 162 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8 Offline
    8 Offline
    8Observer8
    wrote on 8 Jul 2024, 22:24 last edited by 8Observer8 7 Aug 2024, 22:54
    #1

    I was very surprised that it works. Please, explain how is it possible that OpenAL Soft that was build for Desktop works in the browser? Why it doesn't print unknown file type for libOpenAL32.dll.a when compiling? Why doesn't it show a message that OpenAL32.dll was not found ? But OpenAL-Soft works in the browser using Qt! I just have set up it like this:

    CONFIG("windows") {
        INCLUDEPATH += $$PWD/libs/openal-soft-1.23.1-mingw-64-bit/include
        LIBS += -L$$PWD/libs/openal-soft-1.23.1-mingw-64-bit/lib/x64
        LIBS += -lOpenAL32.dll
    }
    

    It works for Desktop and WebAssembly without any changes. I just tried to build Desktop demo to WebAssembly to see what errors in will show for OpenAL Soft but it works! You can run my following my demo on itch and click on the sound button on the right button corner.

    1 Reply Last reply
    0
    • 8 8Observer8 marked this topic as a regular topic on 8 Jul 2024, 22:54
    • 8 Offline
      8 Offline
      8Observer8
      wrote on 8 Jul 2024, 23:01 last edited by 8Observer8 7 Aug 2024, 23:06
      #2

      When building in WASM, what is inside this section is ignored: CONFIG("windows"). Used OpenAL browser implementation using Emscripten: https://emscripten.org/docs/porting/Audio.html All code written in OpenAL, without the need for changes on the part of the programmer, is compiled into WASM. Now it is clear.

      1 Reply Last reply
      0

      1/2

      8 Jul 2024, 22:24

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved