Skip to content

Emscripten Updates from Jonathan Frank - #8558

Draft
danoli3 wants to merge 6 commits into
openframeworks:masterfrom
danoli3:emscripten-combined
Draft

danoli3 wants to merge 6 commits into
openframeworks:masterfrom
danoli3:emscripten-combined

Conversation

@danoli3

@danoli3 danoli3 commented Sep 11, 2026

Copy link
Copy Markdown
Member

Combined Emscripten PRs, cherry-picked with original author (Jonathhhan) and adapted for 6.0.6:

@danoli3 danoli3 changed the title Emscripten: combine 7211+7261+7553+7727 with 6.0.6 update Emscripten Updates Sep 11, 2026
@danoli3 danoli3 changed the title Emscripten Updates Emscripten Updates from Jonathan Frank Sep 11, 2026
danoli3 and others added 5 commits September 11, 2026 21:18
Cherry-picked from Jonathhhan/Emscripten-glInfoExample-fix
- Wrap GL limits and file handling in #ifndef TARGET_EMSCRIPTEN
- Original PR: openframeworks#7211
Cherry-picked from Jonathhhan/Emscripten_audioDeviceSelect_draft
- Add library_audioDeviceSelect.js for audio device enumeration
- Update library_html5audio.js
- Add --post-js for audioDeviceSelect in config.emscripten.default.mk
- Original PR: openframeworks#7261
Cherry-picked from Jonathhhan/Emscripten_recordVideo
- Add recordVideo.js and fix-webm-duration.js for canvas recording
- Update library_html5audio.js (MediaStreamAudioDestinationNode)
- Add --pre-js for recordVideo/fix-webm in config.emscripten.default.mk
- Original PR: openframeworks#7553
Cherry-picked from Jonathhhan/audioWorklet-3
- Update html5audio to audioWorklet (AudioContext 44100, MediaStreamAudioDestinationNode, emscriptenRegisterAudioObject)
- Rewrite ofxEmscriptenSoundStream to use emscripten_create_wasm_audio_worklet_node
- Update sound examples to 128 buffer, fix mutex to std::mutex
- Add USE_PTHREADS, AUDIO_WORKLET, WASM_WORKERS flags for 6.x (adapted for 6.0.6)
- Original PR: openframeworks#7727
@danoli3
danoli3 force-pushed the emscripten-combined branch from 0b26f61 to 64763cc Compare September 11, 2026 11:21
WASM_WORKERS=1 + AUDIO_WORKLET=1 with MAIN_MODULE=1 fails on 6.0.6.
Use MAIN_MODULE=2 (dynamic) which allows WASM_WORKERS.
Keeps WASM_WORKERS perf for audioWorklet while allowing MAIN_MODULE.
@danoli3

danoli3 commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Dropping WASM_WORKERS in light of -s AUDIO_WORKLET=1 - fixes MAIN_MODULE issues

@danoli3
danoli3 marked this pull request as draft September 12, 2026 04:32
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.

2 participants