CRI ADX  Last Updated: 2024-07-17 10:47 p
HCA-MX Playback

Sample Directory

/CRIWARE/SDK/pc/samples/criatomex/hca_mx_playback


Sample Description

This sample demonstrates HCA-MX data playback.
When playing HCA-MX data, you must create a voice pool that is different from a normal voice pool (i.e. not a standard voice pool).
More specifically, you must use the criAtomExVoicePool_AllocateHcaVoicePool function to create a voice pool capable of handling HCA-MX playback.
:
/* Create an HCA-MX voice pool */
app_obj->hca_mx_pool = criAtomExVoicePool_AllocateHcaMxVoicePool(NULL, NULL, 0);
:
CriAtomExVoicePoolHn criAtomExVoicePool_AllocateHcaMxVoicePool(const CriAtomExHcaMxVoicePoolConfig *config, void *work, CriSint32 work_size)
Create an HCA-MX Voice Pool.
Attention
If you are initializing the library with the criAtomEx_Initialize function instead of a platform-specific library initialization function, you will also need to call the criAtomExHcaMx_Initialize function in addition to the above operations.
If you want to perform HCA-MX playback using an AWB file or standalone file without using an ACB file, you must set the playback sound data type to HCA-MX (CRIATOMEX_FORMAT_HCA_MX) with the criAtomExPlayer_SetFormat function before beginning playback.<br