# Fmod Running in H5 but Got Error 44 when loading banks

**URL:** https://qa.fmod.com/t/fmod-running-in-h5-but-got-error-44-when-loading-banks/21187
**Category:** FMOD Engine
**Created:** [February 1, 2024, 9:49am UTC](https://qa.fmod.com/t/fmod-running-in-h5-but-got-error-44-when-loading-banks/21187 "2024-02-01T09:49:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kenken0615](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@Kenken0615](https://qa.fmod.com/u/Kenken0615)
#### Post date: [February 1, 2024, 9:49am UTC](https://qa.fmod.com/t/fmod-running-in-h5-but-got-error-44-when-loading-banks/21187/1 "2024-02-01T09:49:49Z")

</div>

Hello, i am using H5 fmod SDK to develop my game.  
But there is something wrong with bank loading, i got this error  
[ERR] FMOD\_OS\_File\_Open : fopen failed to open ‘F:/res/assets/FmodBanks/Master.strings.bank’, errno = 44

fmodstudioL.js:9 [ERR] RuntimeBankModel::openFile : Failed to open file ‘F:/res/assets/FmodBanks/Master.strings.bank’

fmodstudioL.js:9 [ERR] FMOD\_OS\_File\_Open : fopen failed to open ‘F:/res/assets/FmodBanks/BGM\_combat\_boss.bank’, errno = 44

fmodstudioL.js:9 [ERR] RuntimeBankModel::openFile : Failed to open file ‘F:/res/assets/FmodBanks/BGM\_combat\_boss.bank’

And my code is:  
Writing in typescript

```auto
        var fmod: FMOD = {}
        fmod = {
            TOTAL_MEMORY: 24 * 1024 * 1024,
            preRun: () => {
                console.log('FMOD preRun. Mounting files...');
                fmod.FS_createPreloadedFile('/', 'Master.bank', 'F:/res/assets/FmodBanks/Master.bank', true, false);
                fmod.FS_createPreloadedFile('/', 'Master.strings.bank', 'F:/res/assets/FmodBanks/Master.strings.bank', true, false);
            },
            onRuntimeInitialized: () => {
                console.log('Runtime Initialized!');
                let outval: any = {};
                fmod.Studio_System_Create(outval);
                let system = outval.val as FMOD.StudioSystem;
                system.initialize(128, FMOD.STUDIO_INITFLAGS.NORMAL, FMOD.INITFLAGS.NORMAL, null);

                system.loadBankFile('F:/res/assets/FmodBanks/Master.strings.bank', FMOD.STUDIO_LOAD_BANK_FLAGS.NORMAL, outval);
                system.loadBankFile('F:/res/assets/FmodBanks/BGM_combat_boss.bank', FMOD.STUDIO_LOAD_BANK_FLAGS.NORMAL, outval);

                system.getEvent('event:/BGM/BGM_combat_boss', outval);
                let desc = outval.val as FMOD.EventDescription;
                desc.createInstance(outval);
                let inst = outval.val as FMOD.EventInstance;
                inst.start();

                setInterval(() => {
                    system.update();
                }, 1000 / 60);
            }
        };
        FMODModule(fmod);

```

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [February 4, 2024, 11:34pm UTC](https://qa.fmod.com/t/fmod-running-in-h5-but-got-error-44-when-loading-banks/21187/2 "2024-02-04T23:34:28Z")

</div>

Hi,

With the FMOD engine downloads, we provide example code that may help solve the issue. It can be found: `"C:\Program Files (x86)\FMOD SoundSystem\FMOD Studio API HTML5\api\studio\examples\simple_event.js"`

Most FMOD functions also return [FMOD.RESULT](https://fmod.com/docs/2.02/api/core-api-common.html#fmod_result) which can be used to check their success. Adding some checks to the results may help pinpoint the issue. We provide an example of how to check the results in the examples:

```auto
// Simple error checking function for all FMOD return values.
function CHECK_RESULT(result)
{
    if (result != FMOD.OK)
    {
        var msg = "Error!!! '" + FMOD.ErrorString(result) + "'";

        alert(msg);

        throw msg;
    }
}

```

Having a look, it may be an issue with not creating a `PreloadFile` for `BGM_combat_boss.bank`

Hope this helps!

---

<div class="post-metadata">

### Author: ![Kenken0615](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@Kenken0615](https://qa.fmod.com/u/Kenken0615)
#### Post date: [February 20, 2024, 2:38am UTC](https://qa.fmod.com/t/fmod-running-in-h5-but-got-error-44-when-loading-banks/21187/3 "2024-02-20T02:38:36Z")

</div>

Thank you so much!
