CRI ADX  Last Updated: 2024-07-17 10:48 p
如何播放高压缩音频数据?
提供压缩至1/6~1/12的音频编解码器“HCA ”。
只需更改创建Voice池的函数,用Cue ID和文件名等指定HCA数据。
具体如下所示。


/* 创建ADX Voice池 */
adx_pool = criAtomExVoicePool_AllocateAdxVoicePool(NULL, NULL, 0);
/* 创建HCA Voice池 */
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


关于详细信息,请参照示例程序“简单播放HCA数据 ”。


Return:Tips