# Load banks from memory

**URL:** <https://qa.fmod.com/t/load-banks-from-memory/11168>\
**Category:** Unity\
**Created:** [October 16, 2013, 1:36pm UTC](https://qa.fmod.com/t/load-banks-from-memory/11168 "2013-10-16T13:36:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![perttuh](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@perttuh](https://qa.fmod.com/u/perttuh)\
**Post date:** [October 16, 2013, 1:36pm UTC](https://qa.fmod.com/t/load-banks-from-memory/11168/1 "2013-10-16T13:36:57Z")

</div>

Hi, just downloaded the integration (fmodstudio10203.unitypackage). It’s really great that there’s finally an official fmod Unity integration! I’ve just started teaching a game development project course at our university and I hope to be able to recommend that everyone learns fmod studio instead of trying to use Unity’s built in limited sound features.

Question: Is the FMOD.Studio.System.load() supposed to work already with both file names and raw data? Loading from files seems to work in the editor, but for standalone builds I’d like to be able to use something like:

```auto
TextAsset bankData=Resources.Load("My bank.bank") as TextAsset;
FMOD.Studio.Bank bank;
FMOD_StudioSystem.instance.System.load(bankData.text, out bank);
```

However this gives me an ERR\_FILE\_NOTFOUND from fmod, although the Resources.Load() does work. To me this suggests that the name\_or\_data argument of FMOD.Studio.System.load() is always treated as a name.

---

<div class="post-metadata">

**Author:** ![Guest1](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@Guest1](https://qa.fmod.com/u/Guest1)\
**Post date:** [October 16, 2013, 10:23pm UTC](https://qa.fmod.com/t/load-banks-from-memory/11168/2 "2013-10-16T22:23:40Z")

</div>

> [@](#):
>
> However this gives me an ERR\_FILE\_NOTFOUND from fmod, although the Resources.Load() does work. To me this suggests that the name\_or\_data argument of FMOD.Studio.System.load() is always treated as a name.

Loading from memory hasn’t been added to the integration yet, we recently added it to the C++ API so it should be possible to add to the integration now. I will look into it and get back to you.

---

<div class="post-metadata">

**Author:** ![Guest1](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@Guest1](https://qa.fmod.com/u/Guest1)\
**Post date:** [October 17, 2013, 4:40am UTC](https://qa.fmod.com/t/load-banks-from-memory/11168/3 "2013-10-17T04:40:22Z")

</div>

I have added a wrapper for the load from memory API and added to the integration here is a prerelease version of the integration containing this feature:

ftp://upload:upload@ftp.fmod.org/fmodst ... itypackage

Here is an example I made demonstrating how to load the banks:

ftp://upload:upload@ftp.fmod.org/load\_f ... xample.zip

Note: that loading from Resources requires you to append .bytes on the end of the file name. (e.g. Master Bank.bank.bytes)

---

<div class="post-metadata">

**Author:** ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://qa.fmod.com/u/Tom1)\
**Post date:** [December 5, 2016, 1:03pm UTC](https://qa.fmod.com/t/load-banks-from-memory/11168/4 "2016-12-05T13:03:35Z")

</div>

Hi there,

How can I access this FTP site. I want to embed my banks as resources.

Kind regards,

Tom

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [December 6, 2016, 11:44pm UTC](https://qa.fmod.com/t/load-banks-from-memory/11168/5 "2016-12-06T23:44:04Z")

</div>

> [@](#):
>
> Hi there,
> 
> How can I access this FTP site. I want to embed my banks as resources.
> 
> Kind regards,
> 
> Tom

This thread refers to a very old version of our Unity integration. Our current version supports loading from memory, please refer to: [http://www.fmod.org/documentation/#content/generated/engine\_new\_unity/assetbundle.html](http://www.fmod.org/documentation/#content/generated/engine_new_unity/assetbundle.html)
