diff --git a/README.md b/README.md index 6cf5933..6f2eb9b 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,18 @@ If you need platform-specific overrides for these settings, append one of `_macos`, `_windows`, `_linux`, `_android`, `_ios`, `_html5` to the config key (eg. `buffer_length_android`). +### Raise the heap size on HTML5 + +FMOD will hiccup and not play sound on HTML5 (particularily Safari on iOS and macOS) +if it doesn't have enough memory for your banks and sound buffers, especially if +loaded with `load_bank_memory()`, which copies them into memory. The exact amount +depends from game to game, but for this example to run, it needs a 512MB heap. + +``` +[html5] +heap_size = 512 +``` + ### Running in the editor The game will bundle fine, but in order for FMOD to be available when running diff --git a/game.project b/game.project index 0ae4441..c40980a 100644 --- a/game.project +++ b/game.project @@ -28,3 +28,6 @@ include_dirs = fmod lib_path = fmod/res speaker_mode = 5.1 +[html5] +heap_size = 512 +