Sample Directory
/CRIWARE/SDK/pc/samples/criatomex/additional_awb
Sample Description
There may be cases where you want to increase the number of sounds in your game through additional downloadable content.
Before, this would have required to download all ACB and AWB data again but now you can use the additional AWB feature to minimize the download size required.
For an overview of the additional content feature:
Additional Contents Feature For how to create data in CRI Atom Craft:
Configuring the Additional Contents
The APIs related to the additional content feature are as follows:
The following sample code demonstrates how to attach an additional content AWB file.
NULL, "AdditonalData.acb", NULL, "AdditionalData.awb", NULL, 0);
NULL, "AdditionalData_01.awb", "AdditionalData_01", NULL, 0);
CriAtomExAcbHn criAtomExAcb_LoadAcbFile(CriFsBinderHn acb_binder, const CriChar8 *acb_path, CriFsBinderHn awb_binder, const CriChar8 *awb_path, void *work, CriSint32 work_size)
Load an ACB file.
void criAtomExAcb_AttachAwbFile(CriAtomExAcbHn acb_hn, CriFsBinderHn awb_binder, const CriChar8 *awb_path, const CriChar8 *awb_name, void *work, CriSint32 work_size)
Attaching an AWB file for streaming.
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback.
void criAtomExPlayer_SetCueId(CriAtomExPlayerHn player, CriAtomExAcbHn acb_hn, CriAtomExCueId id)
Set the sound data to play (specifying a Cue ID)