Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

[Request] Emscripten Support #2

Open
JaredSartin opened this issue Aug 24, 2015 · 2 comments
Open

[Request] Emscripten Support #2

JaredSartin opened this issue Aug 24, 2015 · 2 comments

Comments

@JaredSartin
Copy link

I have done very little work with Emscripten, but would lend a hand. Have you thought about web support at all?

@rxi
Copy link
Owner

rxi commented Aug 24, 2015

@rnlf managed to get an earlier version of it working with emscripten which was pretty cool.

It is something I've considered trying again and will likely attempt during a weekend at some point. One thing I believe will be an issue is the audio system, which is written to interact directly with SDL's audio callback, implementing its own mixer and outputting raw PCM (see m_audio.c and m_source.c). As far as I understand emscripten expects you use something like OpenAL, or SDL's built in mixer (though I may be wrong, given my unfamiliarity with the platform) and thus audio would have to be disabled in the build.

It would be interesting to see how well the framework performs with an actual game using emscripten, and given that the framework uses software rendering and only has one external dependency (SDL), shouldn't be too much of a task to get going, with the exception of the audio system.

@JaredSartin JaredSartin changed the title [Request] Emscripten Support? [Request] Emscripten Support Aug 24, 2015
@JaredSartin
Copy link
Author

Awesome - I will will help where I can. That does make sense for the audio portion being disabled.

It's nice there aren't many external dependencies to wrangle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants