carb::audio::getSoundDataLoadDescDefaults
Defined in carb/audio/AudioUtils.h
-
inline void carb::audio::getSoundDataLoadDescDefaults(SoundDataLoadDesc *desc)
Initialize a SoundDataLoadDesc to its defaults.
Remark
This initializes
desc
to a set of default values. This is useful for cases where only a small subset of members need to be changed, since this will initialize the entire struct to no-op values. For example, when loading a sound from a file name, onlydesc->name
anddesc->flags
need to be modified.Note
This function is deprecated and should no longer be used. This can be replaced by simply initializing the descriptor with “= {}”.
- Parameters
desc – [out] The desc to initialize.