carb::audio::fDecodeStateFlagOptimizeSeek

Defined in carb/audio/IAudioData.h

constexpr DecodeStateFlags carb::audio::fDecodeStateFlagOptimizeSeek = 0x00000002

If this flag is set and the encoded format supports this behavior, indexes for seek optimization will be generated when the CodecState is created.

For a streaming sound on disk, this means that the entire sound will be read off disk when creating this index; the sound will not be decoded or fully loaded into memory, however. This will reduce the time spent when seeking within a SoundData object. This will increase the time spent initializing the decoding stream, and this will use some additional memory. This option currently only affects SampleFormat::eVorbis and SampleFormat::eOpus. This will clear the metadata and event points from the sound being decoded unless the corresponding flag is used to skip the parsing of those elements.