# Events that uses the same sound asset (Memory usage question)

**URL:** <https://qa.fmod.com/t/events-that-uses-the-same-sound-asset-memory-usage-question/12433>\
**Category:** FMOD Engine\
**Created:** [April 6, 2016, 3:06am UTC](https://qa.fmod.com/t/events-that-uses-the-same-sound-asset-memory-usage-question/12433 "2016-04-06T03:06:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arbalest57](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@Arbalest57](https://qa.fmod.com/u/Arbalest57)\
**Post date:** [April 6, 2016, 3:06am UTC](https://qa.fmod.com/t/events-that-uses-the-same-sound-asset-memory-usage-question/12433/1 "2016-04-06T03:06:17Z")

</div>

Hi, what would happen if different events (not event instances) uses the same sound asset and then I load the sample data for each event via EventDescriptor::LoadSampleData()? Would there be duplicate data loaded in memory?

---

<div class="post-metadata">

**Author:** ![graeme](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graeme](https://qa.fmod.com/u/graeme)\
**Post date:** [April 7, 2016, 1:03am UTC](https://qa.fmod.com/t/events-that-uses-the-same-sound-asset-memory-usage-question/12433/2 "2016-04-07T01:03:06Z")

</div>

No, there would not be any duplicate data in memory. Studio maintains a reference count for each sound it loads, so there is only a single copy in memory at a time. This mechanism works even across banks, for example if events in different banks share the same sound asset.

---

<div class="post-metadata">

**Author:** ![Arbalest57](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@Arbalest57](https://qa.fmod.com/u/Arbalest57)\
**Post date:** [April 7, 2016, 1:27am UTC](https://qa.fmod.com/t/events-that-uses-the-same-sound-asset-memory-usage-question/12433/3 "2016-04-07T01:27:07Z")

</div>

> [@](#):
>
> No, there would not be any duplicate data in memory. Studio maintains a reference count for each sound it loads, so there is only a single copy in memory at a time. This mechanism works even across banks, for example if events in different banks share the same sound asset.

Thanks for the clear answer. Cheers.
