CRI ADX  Last Updated: 2024-07-17 10:47 p
How to Play Back High Compression Audio Data


An audio codec called HCA is supported, which compresses audio data to 1/6 to 1/12 the size.
To use this codec, simply modify a function for creating a Voice Pool and specify HCA data by its Cue ID or file name.
This can be done as follows.

/* Create an ADX Voice Pool */
adx_pool = criAtomExVoicePool_AllocateAdxVoicePool(NULL, NULL, 0);
/* This code can be changed to the following code. */
/* Create a HCA Voice Pool */
hca_pool = criAtomExVoicePool_AllocateHcaVoicePool(NULL, NULL, 0);
CriAtomExVoicePoolHn criAtomExVoicePool_AllocateAdxVoicePool(const CriAtomExAdxVoicePoolConfig *config, void *work, CriSint32 work_size)
Create an ADX Voice Pool.
CriAtomExVoicePoolHn criAtomExVoicePool_AllocateHcaVoicePool(const CriAtomExHcaVoicePoolConfig *config, void *work, CriSint32 work_size)
Create an HCA Voice Pool.

For details, see the sample program in 'Simple Playback of HCA Data .'

Return:Tips