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:
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.