CRI ADX  Last Updated: 2024-07-17 10:48 p
AWB的添加内容

示例目录

/cri/pc/samples/criatomex/additional_awb


示例描述

有时大家可能需要通过分发下载的添加内容来增加声音。
以前必须要下载所有的ACB和AWB,但通过使用AWB添加功能,可以将下载大小控制在最低限度。


添加内容功能的概述请点击这里。→ 添加内容功能
CRI Atom Craft的数据创建方法请点击这里。→ 设置添加内容


添加内容功能的相关API如下。
/* 下载ACB,设置基础AWB */
NULL, "AdditonalData.acb", NULL, "AdditionalData.awb", NULL, 0);
/* 添加AWB文件 */
NULL, "AdditionalData_01.awb", "AdditionalData_01", NULL, 0);
/* 指定要播放的Cue ID */
criAtomExPlayer_SetCueId(player, acb_hn, 6);
/* 开始播放 */
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)


示例使用的数据中AtomCraft项目的目录

/cri/tools/criatomex/examples/tutorial_data_for_runtime