CRI ADX  Last Updated: 2025-05-07 13:34 p
Simple playback of HCA data

Sample directory

/cri/pc/samples/criatomex/simple_playback_hca

Data used in the sample

/cri/common/smpdata/criatomex/
  • SampleProject.acf
  • AtomCueSheet.acb
  • AtomCueSheet.awb

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.