# Which functions return FMOD\_ERR\_NOTREADY when in FMOD\_OPENSTATE\_SETPOSITION?

**URL:** <https://qa.fmod.com/t/which-functions-return-fmod-err-notready-when-in-fmod-openstate-setposition/14496>\
**Category:** FMOD Engine\
**Created:** [March 29, 2019, 11:54am UTC](https://qa.fmod.com/t/which-functions-return-fmod-err-notready-when-in-fmod-openstate-setposition/14496 "2019-03-29T11:54:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jossdisguise](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@jossdisguise](https://qa.fmod.com/u/jossdisguise)\
**Post date:** [March 29, 2019, 11:54am UTC](https://qa.fmod.com/t/which-functions-return-fmod-err-notready-when-in-fmod-openstate-setposition/14496/1 "2019-03-29T11:54:04Z")

</div>

The documentation for Channel::setPosition states;

[https://www.fmod.com/resources/documentation-api?version=2.0&amp;page=core-api-channel.html#channel\_setposition](https://www.fmod.com/resources/documentation-api?version=2.0&amp;page=core-api-channel.html#channel_setposition)

> If playing a Sound created with System::createStream or FMOD\_CREATESTREAM changing the position may cause a slow reflush operation while the file seek and decode occurs. You can avoid this by creating the stream with FMOD\_NONBLOCKING. This will cause the stream to go into FMOD\_OPENSTATE\_SETPOSITION state Sound::getOpenState and Sound commands will return FMOD\_ERR\_NOTREADY. Channel::getPosition will also not update until this non-blocking set position operation has completed.

Which functions will return FMOD\_ERR\_NOTREADY when the sound is in FMOD\_OPENSTATE\_SETPOSITION?

What is the definition of a “Sound command”?

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [March 31, 2019, 1:12am UTC](https://qa.fmod.com/t/which-functions-return-fmod-err-notready-when-in-fmod-openstate-setposition/14496/2 "2019-03-31T01:12:58Z")

</div>

All functions in the FMOD::Sound class.  
[https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-sound.html](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-sound.html)

A few functions may not be affected because their data is cached/not affected by position change, such as Sound::getName for example.
