CRI ADX  Last Updated: 2024-07-17 10:48 p
特定的声音不被播放
仅不能播放特定的声音(Cue、Voice)时,请首先使用从::criAtomExPlayer_Start 函数返回的播放ID来获取状态。
向Player发出播放请求并接收播放ID的代码如下。
/* 播放单位的ID */
CriAtomExPlaybackId playback_id;
/* 发出播放请求 */
playback_id = criAtomExPlayer_Start(player);
/* criAtomExPlayer_Start 结果的检查 */
if (playback_id == CRIATOMEX_INVALID_PLAYBACK_ID) {
/* 错误 */
}
#define CRIATOMEX_INVALID_PLAYBACK_ID
Invalid playback ID
Definition: cri_le_atom_ex.h:196
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback
CriUint32 CriAtomExPlaybackId
Playback ID
Definition: cri_le_atom_ex.h:3722



从播放ID获取状态的代码如下。
/* 获取播放ID的状态 */
CriAtomExPlaybackStatus playback_status;
playback_status = criAtomExPlayback_GetStatus(playback_id);
CriAtomExPlaybackStatus criAtomExPlayback_GetStatus(CriAtomExPlaybackId id)
Get the playback status
enum CriAtomExPlaybackStatusTag CriAtomExPlaybackStatus
Playback status



已获取的播放ID状态的分类如下。