enzienaudio / heavy

heavy public issue tracker and static dsp code releases
https://enzienaudio.com
ISC License
71 stars 4 forks source link

Add ability to define amount of TOTAL_MEMORY requested for JS app #52

Open ylevtov opened 9 years ago

ylevtov commented 9 years ago

Currently I'm hacking the TOTAL_MEMORY variable in the minified JS that Emscripten produces. Would be nice to be able to add a flag to the uploader defining how much memory our app will require for loading samples etc.

var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216
diplojocus commented 9 years ago

Yes would be nice to set this from the user side.

@mhroth could we pass some variables in the POST message? i.e. js_totalmemory=16777216