CRI ADX  Last Updated: 2024-07-17 10:48 p
AISAC控制器
示例目录
/cri/pc/samples/criatomex/control_aisac
示例描述
一边更改由CRI Atom Craft创建的 AISAC 控制值一边执行播放。
CriFloat32 distance;
/* 创建Player */
player = criAtomExPlayer_Create(NULL, NULL, 0);
/* 为Player设置AISAC Cue */
criAtomExPlayer_SetCueId(player, acb_hn, CRI_ATOMCUESHEET_MUSICXFADE);
/* 开始播放 */
/* 一边更改AISAC的控制值一边播放 */
for(distance = 0.0f; distance <= 1.0f; distance += 0.01f) {
/* V同步等待 */
criFwSys_WaitVsync();
/* 执行Server处理 */
/* AISAC的控制值 更改第0号的值 */
/* 更新处理 */
}
void criAtomEx_ExecuteMain(void)
Execute the server processing
void criAtomExPlayer_SetAisacControlById(CriAtomExPlayerHn player, CriAtomExAisacControlId control_id, CriFloat32 control_value)
Set an AISAC control value (specifying the control ID)
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback
CriAtomExPlayerObj * CriAtomExPlayerHn
Player handle
Definition: cri_le_atom_ex.h:3622
void criAtomExPlayer_UpdateAll(CriAtomExPlayerHn player)
Update the playback parameters (for all sounds currently playing)
CriAtomExPlayerHn criAtomExPlayer_Create(const CriAtomExPlayerConfig *config, void *work, CriSint32 work_size)
Create an AtomEx player
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