CRI ADX  Last Updated: 2024-07-17 10:47 p
CriAtomHcaMx
CriAtomHcaMx is the module for playing back HCA-MX data.
By using CriAtomHcaMx, multiple HCA data can be played back simultaneously with a low load.
While CriAtomHcaMx itself is a lower-layer module, an interface ( CriAtomExHcaMx API ) that can be used from the AtomEx layer is provided.
The procedure for playing back HCA-MX data is as follows:
  1. Use the criAtomExHcaMx_Initialize function to initialize the HCA-MX module.
  2. Use the criAtomExVoicePool_AllocateHcaMxVoicePool function to create a Voice Pool from which HCA-MX data can be played back.
  3. Use the criAtomExPlayer_SetData function and so on to set HCA-MX data for an AtomEx Player.
  4. Use the criAtomExPlayer_Start function to start playback.
The HCA-MX module mixes all HCA-MX data and outputs them.
Therefore, to use the HCA-MX module, first, it is necessary to execute the criAtomExHcaMx_Initialize function to start the mixer.
[Remarks]
HCA-MX module initialization is invoked from a model-specific initialization function.
Therefore, if a target-specific initialization function is used, it is not necessary to execute the criAtomExHcaMx_Initialize function separately.

After the initialization of the HCA-MX module, create a Voice Pool and then play back on an AtomEx Player, as in the case of other codecs.
[Note]
HCA-MX data cannot be played back at a rate other than the sampling rate specified when the data are created because mixing processing is performed before decoding.
When the HCA-MX module is initialized or when a Voice Pool is created, make sure to specify a sampling rate that is the same as that of audio data.