Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audioworklet 2025 #8378

Closed
wants to merge 12 commits into from
Closed

Conversation

ofTheo
Copy link
Member

@ofTheo ofTheo commented Mar 18, 2025

From @Jonathhhan's branch

closes #8364
closes #8291

@ofTheo
Copy link
Member Author

ofTheo commented Mar 19, 2025

Testing the sound examples now.

audioOutputExample works, but getting this with soundPlayerExample.

Looks like an issue with the ofToDataPathFS

Uncaught RuntimeError: unreachable
    at index.wasm.std::__2::filesystem::detail::ErrorHandler<std::__2::filesystem::path>::report(std::__2::error_code const&) const (http://localhost:6931/index.wasm:wasm-function[3044]:0x1513e5)
    at index.wasm.std::__2::filesystem::__weakly_canonical(std::__2::filesystem::path const&, std::__2::error_code*) (http://localhost:6931/index.wasm:wasm-function[3049]:0x15178f)
    at index.wasm.ofToDataPathFS(std::__2::filesystem::path const&, bool) (http://localhost:6931/index.wasm:wasm-function[665]:0x4f4bd)
    at index.wasm.ofxEmscriptenSoundPlayer::load(std::__2::filesystem::path const&, bool) (http://localhost:6931/index.wasm:wasm-function[220]:0x2a878)
    at index.wasm.ofApp::setup() (http://localhost:6931/index.wasm:wasm-function[158]:0x1feb2)

@ofTheo
Copy link
Member Author

ofTheo commented Mar 19, 2025

Looks like no file loading actually works with this branch ( currently ) @Jonathhhan .
I think it is something with the flags removed from config.emscripten.default.mk or

For example examples/input_output/dirListExample/ works with the nightly branch, but pulling in the changes from this PR results in:

image

@Jonathhhan
Copy link
Contributor

@ofTheo sorry. Just a guess, maybe one of those flags is missing:

PLATFORM_LDFLAGS += -s AUTO_NATIVE_LIBRARIES=1
PLATFORM_LDFLAGS += -s AUTO_JS_LIBRARIES=1

?

@danoli3
Copy link
Member

danoli3 commented Mar 19, 2025 via email

@ofTheo
Copy link
Member Author

ofTheo commented Mar 19, 2025

@Jonathhhan it looks like the STANDALONE_WASM flag is the issue as it disables the virtual file system.
This is a shame as that's what allows the apps to run and audio worklets to work too.

If you can figure out a way to get the soundPlayerExample or even the dirListExample working in your branch then we can revisit but right now I don't know if we can ship audio with 0.12.1 in emscripten. ( I have spent 3 days on this now ).

@ofTheo
Copy link
Member Author

ofTheo commented Mar 24, 2025

closing for now

@ofTheo ofTheo closed this Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emscripten Audio isnt working with Nightly Build Emscripten - AUDIO not defined error with video player
3 participants