Skip to content

pac-dev/SporthEm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project allows running Sporth in Javascript / WebAssembly using emscripten. It does not use the emscripten-provided APIs such as OpenAL, but only provides a callback that generates audio into a buffer, to be called from JS using AudioContext script processor nodes or Web Audio worklets. Compared to the emscripten-provided APIs, this actually simplifies the glue code, and should result in fewer dropouts, also allowing the audio to keep playing in background tabs. This is based on the audio callback technique used in Sokol.

Building with emscripten

Make sure you have Premake5 and the emscripten SDK (at least version 1.39), then:

premake5 gmake
cd build/emscripten
emsdk activate latest
make config=release

About

Run Sporth in Javascript / WebAssembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published