carb::audio::fDataFlagUserDecode
Defined in carb/audio/IAudioData.h
-
constexpr DataFlags carb::audio::fDataFlagUserDecode = 0x10000000
use the user-decode callbacks when loading or streaming this data.
In this case, the format of the original sound is unspecified and unknown. The decode callback will be used to convert all of the object’s data to PCM data when streaming or loading (depending on the other flags used). When this flag is used, the decoded format information in the SoundDataLoadDesc descriptor must be specified. This flag is not allowed if specified through the asset loader system since it requires extra information.
In addition to allowing additional audio formats to be decoded, the user decode callbacks can also act as a simple abstract datasource; this may be useful when wanting to read data from a pack file without having to copy the full file blob out to memory.