Which functions return FMOD_ERR_NOTREADY when in FMOD_OPENSTATE_SETPOSITION?

#1

The documentation for Channel::setPosition states;

https://www.fmod.com/resources/documentation-api?version=2.0&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”?

0 Likes

#2

All functions in the FMOD::Sound class.
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.

0 Likes