Firelight Technologies FMOD Studio API
FMOD_OPENSTATE
These values describe what state a sound is in after FMOD_NONBLOCKING has been used to open it.
C/C++ Syntax
typedef enum {
FMOD_OPENSTATE_READY,
FMOD_OPENSTATE_LOADING,
FMOD_OPENSTATE_ERROR,
FMOD_OPENSTATE_CONNECTING,
FMOD_OPENSTATE_BUFFERING,
FMOD_OPENSTATE_SEEKING,
FMOD_OPENSTATE_PLAYING,
FMOD_OPENSTATE_SETPOSITION,
FMOD_OPENSTATE_MAX
} FMOD_OPENSTATE;
JavaScript Syntax
FMOD.OPENSTATE_READY
FMOD.OPENSTATE_LOADING
FMOD.OPENSTATE_ERROR
FMOD.OPENSTATE_CONNECTING
FMOD.OPENSTATE_BUFFERING
FMOD.OPENSTATE_SEEKING
FMOD.OPENSTATE_PLAYING
FMOD.OPENSTATE_SETPOSITION
FMOD.OPENSTATE_MAX
FMOD.OPENSTATE_FORCEINT
Values
FMOD_OPENSTATE_READY
Opened and ready to play.
FMOD_OPENSTATE_LOADING
Initial load in progress.
FMOD_OPENSTATE_ERROR
Failed to open - file not found, out of memory etc. See return value of Sound::getOpenState for what happened.
FMOD_OPENSTATE_CONNECTING
Connecting to remote host (internet sounds only).
FMOD_OPENSTATE_BUFFERING
Buffering data.
FMOD_OPENSTATE_SEEKING
Seeking to subsound and re-flushing stream buffer.
FMOD_OPENSTATE_PLAYING
Ready and playing, but not possible to release at this time without stalling the main thread.
FMOD_OPENSTATE_SETPOSITION
Seeking within a stream to a different position.
FMOD_OPENSTATE_MAX
Maximum number of open state types.
Remarks
With streams, if you are using FMOD_NONBLOCKING, note that if the user calls Sound::getSubSound, a stream will go into FMOD_OPENSTATE_SEEKING state and sound related commands will return FMOD_ERR_NOTREADY.
With streams, if you are using FMOD_NONBLOCKING, note that if the user calls Channel::getPosition, a stream will go into FMOD_OPENSTATE_SETPOSITION state and sound related commands will return FMOD_ERR_NOTREADY.
See Also
Version 1.10.03 Built on Feb 1, 2018