Firelight Technologies FMOD Studio API
FS_createPreloadedFile
Mounts a local file so that FMOD can recognize it when calling a function that uses a filename (ie loadBank/createSound)
See https://kripken.github.io/emscripten-site/docs/api_reference/Filesystem-API.html#FS.createPreloadedFile for docs on FS_createPreloadedFile
JavaScript Syntax
FMOD.FS_createPreloadedFile(
foldername, // (string). Parent folder, ie '/'
filename, // (string). Filename to preload.
url, // (string). Path inside parent folder. ie the subdirectory.
canread, // (boolean). Whether the file should have read permissions set from the program’s point of view
canwrite // (boolean). Whether the file should have write permissions set from the program’s point of view.
);
Return Values
If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.
Version 1.10.03 Built on Feb 1, 2018