CRI ADX
Last Updated: 2024-07-17 10:48 p
日本語
English
中文
简单播放HCA数据
示例目录
/cri/pc/samples/criatomex/simple_playback_hca
示例描述
要播放HCA数据,必须创建HCA Voice池。
使用::criAtomExVoicePool_AllocateHcaVoicePool函数创建HCA Voice池。
CriAtomExVoicePoolHn
voice_pool;
voice_pool =
criAtomExVoicePool_AllocateHcaVoicePool
(NULL, NULL, 0);
CriAtomExVoicePoolHn
struct CriAtomExVoicePoolTag * CriAtomExVoicePoolHn
Voice Pool handle
Definition:
cri_le_atom_ex.h:3220
criAtomExVoicePool_AllocateHcaVoicePool
CriAtomExVoicePoolHn criAtomExVoicePool_AllocateHcaVoicePool(const CriAtomExHcaVoicePoolConfig *config, void *work, CriSint32 work_size)
Create an HCA Voice Pool
创建的Voice池将注册到系统中,并在播放Cue时自动分配Voice。
注意
播放Cue以外的HCA数据时(使用::criAtomExPlayer_SetData函数和::criAtomExPlayer_SetFile函数、 使用::criAtomExPlayer_SetWaveId函数设置数据时),除上面的操作外, 还必须同时使用::criAtomExPlayer_SetFormat函数指定格式。
示例使用的数据中AtomCraft项目的目录
/cri/tools/criatomex/examples/tutorial_data_for_runtime
Copyright (c) CRI Middleware Co., Ltd. 1.9.1