# Why spend so much time in FMOD\_System\_CreateSound?

**URL:** <https://qa.fmod.com/t/why-spend-so-much-time-in-fmod-system-createsound/15268>\
**Category:** FMOD Engine\
**Created:** [December 3, 2019, 12:16pm UTC](https://qa.fmod.com/t/why-spend-so-much-time-in-fmod-system-createsound/15268 "2019-12-03T12:16:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LemonTree](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@LemonTree](https://qa.fmod.com/u/LemonTree)\
**Post date:** [December 3, 2019, 12:16pm UTC](https://qa.fmod.com/t/why-spend-so-much-time-in-fmod-system-createsound/15268/1 "2019-12-03T12:16:35Z")

</div>

I read the data from the Wav file and then use Fmod\_createsound to create the sound effect. I found that this method takes a lot of time, about 0.1s. Can someone tell me why? How can i avoid this？

code：  
FMOD\_CREATESOUNDEXINFO exinfo = { 0 };  
exinfo.cbsize = sizeof(exinfo);  
exinfo.length = (unsigned int)pDataBuff-\>size();

res = FMOD\_System\_CreateSound(FMODSystem,  
(const char \*)(pDataBuff-\>getPtr()),FMOD\_VIRTUAL\_PLAYFROMSTART | FMOD\_3D | FMOD\_OPENMEMORY, &exinfo, &pFMODSound);

---

<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 9, 2019, 12:07am UTC](https://qa.fmod.com/t/why-spend-so-much-time-in-fmod-system-createsound/15268/2 "2019-12-09T00:07:41Z")

</div>

Different file types take different amounts of time to load, you could also try using the `FMOD_NONBLOCKING` flag.
