CRI ADX  Last Updated: 2024-07-17 10:47 p
Simple Playback of HCA Data

Samples Directory

/CRIWARE/SDK/pc/samples/criatomex/simple_playback_hca


Sample Description

Before playing back HCA data, you must create an HCA Voice Pool.
You can use the criAtomExVoicePool_AllocateHcaVoicePool function to create an HCA Voice Pool.
voice_pool = criAtomExVoicePool_AllocateHcaVoicePool(NULL, NULL, 0);
struct CriAtomExVoicePoolTag * CriAtomExVoicePoolHn
Voice Pool handle.
Definition: cri_le_atom_ex.h:3220
CriAtomExVoicePoolHn criAtomExVoicePool_AllocateHcaVoicePool(const CriAtomExHcaVoicePoolConfig *config, void *work, CriSint32 work_size)
Create an HCA Voice Pool.


Created Voice Pool is registered to the system and Voice is automatically assigned when playing back a Cue.

Attention
When playing back HCA data other than Cue (when setting data using the criAtomExPlayer_SetData , criAtomExPlayer_SetFile , or criAtomExPlayer_SetWaveId function), in addition to the above steps, format must be specified using the criAtomExPlayer_SetFormat function.