Firelight Technologies FMOD Studio API
FMOD_TIMEUNIT
List of time types that can be returned by Sound::getLength and used with Channel::setPosition or Channel::getPosition.
C/C++ Syntax
#define FMOD_TIMEUNIT_MS 0x00000001
#define FMOD_TIMEUNIT_PCM 0x00000002
#define FMOD_TIMEUNIT_PCMBYTES 0x00000004
#define FMOD_TIMEUNIT_RAWBYTES 0x00000008
#define FMOD_TIMEUNIT_PCMFRACTION 0x00000010
#define FMOD_TIMEUNIT_MODORDER 0x00000100
#define FMOD_TIMEUNIT_MODROW 0x00000200
#define FMOD_TIMEUNIT_MODPATTERN 0x00000400
JavaScript Syntax
FMOD.TIMEUNIT_MS
FMOD.TIMEUNIT_PCM
FMOD.TIMEUNIT_PCMBYTES
FMOD.TIMEUNIT_RAWBYTES
FMOD.TIMEUNIT_PCMFRACTION
FMOD.TIMEUNIT_MODORDER
FMOD.TIMEUNIT_MODROW
FMOD.TIMEUNIT_MODPATTERN
FMOD.TIMEUNIT_BUFFERED
Values
FMOD_TIMEUNIT_MS
Milliseconds.
FMOD_TIMEUNIT_PCM
PCM samples, related to milliseconds * samplerate / 1000.
FMOD_TIMEUNIT_PCMBYTES
Bytes, related to PCM samples * channels * datawidth (ie 16bit = 2 bytes).
FMOD_TIMEUNIT_RAWBYTES
Raw file bytes of (compressed) sound data (does not include headers). Only used by Sound::getLength and Channel::getPosition.
FMOD_TIMEUNIT_PCMFRACTION
Fractions of 1 PCM sample. Unsigned int range 0 to 0xFFFFFFFF. Used for sub-sample granularity for DSP purposes.
FMOD_TIMEUNIT_MODORDER
MOD/S3M/XM/IT. Order in a sequenced module format. Use Sound::getFormat to determine the PCM format being decoded to.
FMOD_TIMEUNIT_MODROW
MOD/S3M/XM/IT. Current row in a sequenced module format. Cannot use with Channel::setPosition. Sound::getLength will return the number of rows in the currently playing or seeked to pattern.
FMOD_TIMEUNIT_MODPATTERN
MOD/S3M/XM/IT. Current pattern in a sequenced module format. Cannot use with Channel::setPosition. Sound::getLength will return the number of patterns in the song and Channel::getPosition will return the currently playing pattern.
See Also
Version 1.10.03 Built on Feb 1, 2018